I need to get the timestamp for the current week's Wednesday and Saturday at 22:59, and then convert the timestamp to a human-readable date.
I've tried the following:
date_default_timezone_set('America/New_York');
$wednesdayLimit = strtotime('wednesday this week');
$saturdayLimit = strtotime('saturday this week');
$wednesdayLimit->setTime(22,59,0);
$saturdayLimit->setTime(22,59,0);
echo date("Y-m-d H:i:d", $wednesdayLimit);
echo date("Y-m-d H:i:d", $saturdayLimit);
But I get the following error:
Uncaught Error: Call to a member function setTime() on integer