strtotime

PHP 4, PHP 5, PHP 7, PHP 8
strtotime - Parse about any English textual datetime description into a Unix timestamp

Example #1 A strtotime example

PHP Version:

Example #2 Checking for failure

PHP Version:


Function strtotime:

Date and Time Functions

Most used PHP functions