How to Calculate the Last Day of the Month in PHP

$lastDay = date(“Y-m-t”, strtotime(“-3 months”)); $firstDay = date(“Y-m-01”, strtotime(“-3 months”));
$lastDay = date(“Y-m-t”, strtotime(“-3 months”)); $firstDay = date(“Y-m-01”, strtotime(“-3 months”));
Categories: How-To's, Technology Tags: Date, First Day, howto, Last Day, Last Day of the Month, Month, php, strtotime, tips
|
No comments
Copyright © 2005-2025 Eric Michael Stone | Random Thoughts, Whims and Fancies…. Powered by WordPress