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-06-25 15:30:58');

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

Result:

$A = '2019-06-25-15-30-58';
$B = '2019.06.25.15.30.58';