I have a variable called $end_date
which gives me the date in epoch format like this: 1539129600
. This translates to Wednesday 10 October 2018 00:00:00
.
The variable returns different dates, but the time is always the same 00:00:00
. Is it possible to take this variable, set the time to 23:59:59
and save it back to a new variable called $end_date_time
containing the same date and the new time 23:59:59
in epoch format.