Mecha CMS

Date and time.

$date->slug()

Convert date to slug.

2.0.02.2.0
$date->slug(string $separator = '-');

Example:

$date = new Date('2019-09-18 16:52:51');

$A = $date->slug;
$B = $date->slug('.');

Result:

$A = '2019-09-18-16-52-51';
$B = '2019.09.18.16.52.51';