When defining a field as a DateTime object, is it "DateTime" or "datetime"?

#1

Answer:

You declare DateTime fields on a c3type with the lowercase “datetime”.
Ex: sellDate: datetime

You use the “DateTime” when you are creating C3 DateTime objects
Ex: var today = DateTime("2017-06-19T5:00:00.000Z")

To see the documentation for primitive types, explore c3ShowType(PrimitiveType)

0 Likes