If i have a date set to May 26, 2025 at 12:51:13 PM
how do I reset the time to 00:00:00 or 23:59:59.
$StartDate=date("May 26, 2025 at 12:51:13 PM");
$StartDate.hour=0;
$StartDate.minute=0;
1 Like
For more on that syntax see:
Additionally to the above, other elements of the date can be read/set using:
1 Like