Source Code:
(back to article)
<?php $timestamp = strtotime("2023-03-03"); // returns 1674768000 $timestamp = strtotime("03/03/2023 12:34:56"); // returns 1674786896 $timestamp = strtotime("2023.03.03 3:45:00 PM -0800"); // returns 1674758700 $timestamp = strtotime("last Sunday"); // returns 1674403200 (assuming today is March 3, 2023) echo $timestamp = strtotime("next month", strtotime("2023-03-15")); // returns 1681516800
Result:
Report an issue