Mecha CMS

Date and time.

$date->__construct()

Create a date instance.

2.0.02.2.0
$date->__construct(string $date = null);

Example:

$A = new Date(1561451382);
$B = new Date('1561451382');
$C = new Date('2019-06-25 15:29:42');
$D = new Date('2019-06-25-15-29-42');
$E = new Date;