Class DateTimeType
Custom DateTimeType class with simplified marshal
- Cake\Database\Type\DateTimeType
- BEdita\Core\Database\Type\DateTimeType
Methods summary
public
|
|
public static
DateTimeInterface|null|mixed
|
#
marshalDateTime( mixed $value, string $dateTimeClassName )
Accepted date time formats are - 2017-01-01 YYYY-MM-DD - 2017-01-01 11:22 YYYY-MM-DD hh:mm - 2017-01-01T11:22:33 YYYY-MM-DDThh:mm:ss - 2017-01-01T11:22:33Z YYYY-MM-DDThh:mm:ssZ - 2017-01-01T19:20+01:00 YYYY-MM-DDThh:mmTZD - 2017-01-01T11:22:33+0100 YYYY-MM-DDThh:mm:ssTZD - 2017-01-01T19:20:30.45+01 YYYY-MM-DDThh:mm:ss.sTZD |