Edit this topic

Date part loader

: shell

: core-parts

: date-part-loader

: /modules/core/parts/services/date-part-loader.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/parts/services/date-part-loader.js

DatePartLoader

The date part loader parses date strings into real date objects.

Kind: global variable

DatePartLoader.load(context, done)

Parses date strings into real dates.

Kind: static method of DatePartLoader

Param Type Description
context object The context object.
context.part object The date part to handle.
context.partName string The name of the part.
context.partType string The type name of the part.
context.item object A reference to the content item.
context.itemType object The type definition for the content item.
context.scope object The scope.
done function The callback.