PHP - strtotime example

strtotime - Converts textual datetime into Unix timestamp.

Separator is a dot (.), European date format (only 4 digit years)

echo date('jS F, Y', strtotime('11.12.2013')) . '\n';
// outputs 11th December, 2013

Separator is a slash (/), American date format

echo date('jS F, Y', strtotime('11/12/13')) . '\n';
// outputs 12th November, 2013

Separator is a dash (-), European date format

echo date('jS F, Y', strtotime('13-12-11')) . '\n';
// outputs 11th December, 2013
echo strtotime('now'), '\n';
echo strtotime('10 June 2019'), '\n';
echo strtotime('+1 day'), '\n';
echo strtotime('+1 week'), '\n';
echo strtotime('+1 week 5 days 3 hours 3 seconds'), '\n';
echo strtotime('next Friday'), '\n';
echo strtotime('last Sunday'), '\n';