[DateTime] (DB Field Attribute)

Has no parameters.

Description:

Enforces compliance with RFC 3339 when storing a date and time, with optional seconds, fractions of a second, and time zone information. Note that like RFC 3339, [DateTime] accepts either a T or a space between the date and the time. See below for a complete list of supported formats.

Times that do not specify a time zone are treated by Moxie.Build as local time, using the host operating system's time zone. As per FRC 3339, Z denotes the time zone of UTC.

Example:

[DateTime]

Supported Formats:

YYYY-MM-DD hh:mm 
YYYY-MM-DD hh:mmZ
YYYY-MM-DD hh:mm+hh
YYYY-MM-DD hh:mm-hh
YYYY-MM-DD hh:mm+hh:mm
YYYY-MM-DD hh:mm-hh:mm

YYYY-MM-DDThh:mm
YYYY-MM-DDThh:mmZ
YYYY-MM-DDThh:mm+hh
YYYY-MM-DDThh:mm-hh
YYYY-MM-DDThh:mm+hh:mm
YYYY-MM-DDThh:mm-hh:mm

YYYY-MM-DD hh:mm:ss
YYYY-MM-DD hh:mm:ssZ
YYYY-MM-DD hh:mm:ss+hh
YYYY-MM-DD hh:mm:ss-hh
YYYY-MM-DD hh:mm:ss+hh:mm
YYYY-MM-DD hh:mm:ss-hh:mm

YYYY-MM-DDThh:mm:ss
YYYY-MM-DDThh:mm:ssZ
YYYY-MM-DDThh:mm:ss+hh
YYYY-MM-DDThh:mm:ss-hh
YYYY-MM-DDThh:mm:ss+hh:mm
YYYY-MM-DDThh:mm:ss-hh:mm

YYYY-MM-DD hh:mm:ss.f
YYYY-MM-DD hh:mm:ss.fZ
YYYY-MM-DD hh:mm:ss.f+hh
YYYY-MM-DD hh:mm:ss.f-hh
YYYY-MM-DD hh:mm:ss.f+hh:mm
YYYY-MM-DD hh:mm:ss.f-hh:mm

YYYY-MM-DDThh:mm:ss.f
YYYY-MM-DDThh:mm:ss.fZ
YYYY-MM-DDThh:mm:ss.f+hh
YYYY-MM-DDThh:mm:ss.f-hh
YYYY-MM-DDThh:mm:ss.f+hh:mm
YYYY-MM-DDThh:mm:ss.f-hh:mm