Literal did not satisfy local datetime format using php value : I'm trying to insert the date/time value from mysql into a form with php.  I've tried various ways to convert the value to the correct format from examples I've found on line (single vs double quotes, etc).  But continue to get the error message with variations of this code.  Note I left off the "<" symbols before input and ?php (code block didn't like them).

>    input type="datetime-local" value="?php echo "$formatStartDate"; ?>" name="$reminder_start_datetime">

I've tried using the value directly from mysql and also formatting it like this:
>$formatStartDate = DateTime::createFromFormat('YYYY-MM-DDThh:mm', $reminder_start_datetime);

I'd appreciate any assistance in pointing me in the right direction.  Thank you.





