I have the following code:
Quote:
$dt_end = new DateTime('June 26, 2022');
$remain = $dt_end->diff(new DateTime());
echo $remain->d . ' days and ' . $remain->h . ' hours';
|
How would I go about changing it so that each month, it will display the days until the last Sunday of the month
without having to put the date in the code?
I've searched a few different places and can't find anything specific to what I need
Hopefully that makes sense?
TIA for any help you can offer.