Hi, I try to do like this but get an invalid date message despite that the returned array consists the valid dates
<?php DateRangePicker::create(array(
"name" => "dateRangeInput",
"format" => "Do MMM, YYYY",
"ranges" => array(
"Yesterday" => DateRangePicker::yesterday(),
"Last 3 days" => function(){
$start = new \DateTime('now');
$end = new \DateTime('now');
$start->sub(new \DateInterval('P2D'));
return array($start->format('Y-m-d 00:00:00'),$end->format('Y-m-d 23:59:59'));
},