PHP date to MySQL date questions

I don’t see that in the context f the script you posted.
But if it is meant to be a datetime for the database the standard format is: YYYY-MM-DD HH:MM:SS using 24 hour clock, so no need for am/pm.

$date = '2018-05-15 01:37:00';