I have an events feed that needs the dates in this format.
query.setMinimumStartTime("2011-12-15");
query.setMaximumStartTime("2011-12-19");
When I pull from the database <?php $startmin = $line['StartDate'];?>
it comes in this format “12/15/2011”
I use <?php $fstartmax = str_replace('/','-',$startmax);?>
to change the “/” to “-” and now have 12-15-2011
how can I make it 2011-12-15??
See https://www.php.net/manual/en/class.datetime.php & https://www.php.net/manual/en/class.dateinterval.php for more info.