Source Code:
(back to article)
<?php $timestamp = time(); // Use the current time, or replace with your own timestamp // Calculate the end of the day $end_of_day = strtotime("tomorrow", $timestamp) - 1; // Format and output the end of the day echo date("Y-m-d H:i:s", $end_of_day); // Output: [current year]-[current month]-[current day] 23:59:59 ?>
Result:
Report an issue