Last Day of the month using php
1 2 3 4 5 |
<?php $date = new DateTime('now'); $date->modify('last day of this month'); echo $date->format('Y-m-d'); ?> |
1 2 3 4 5 |
<?php $date = new DateTime('now'); $date->modify('last day of this month'); echo $date->format('Y-m-d'); ?> |