Mecha CMS

Date and time.

$date->day()

Get day.

2.2.0
$date->day($type = null);

Example:

$date = new Date('2019-09-18 16:01:02');

$A = $date->day;
$B = $date->day("");
$C = $date->day(7);

Result:

$A = '18';
$B = 'Wednesday';
$C = '04';