strtotime()
The strtotime() function converts a textual date into a Unix timestamp.
Example
Section titled “Example”$timestamp = strtotime("next Monday");
echo date("Y-m-d", $timestamp);Another Example
Section titled “Another Example”echo strtotime("2025-01-01");