Mecha CMS

Date and time.

$date->ISO8601()

Get ISO8601 date format.

2.0.02.2.0

Example:

$A = (new Date('2019-09-18 16:00:58'))->ISO8601;

Result:

$A = '2019-09-18T16:00:58+07:00';