$today_startdatetime = $date.‘T00:00:00+8:00’;
$today_enddatetime = $date.“T23:59:59+8:00”;
$created_at = new \Square\Models\TimeRange();
$created_at->setStartAt(’’$today_startdatetime’’); //not working
$created_at->setEndAt(‘2021-04-16T23:59:59+08:00’); //this works
$date_time_filter = new \Square\Models\SearchOrdersDateTimeFilter();
So the above is my code where I replaced XXX inside the setStartAt(XXX) from String to a variable and it would not work. Is there any solution I could be able to place a variable inside the setStartAt()?