I have the code below in a php file that inserts $fdate into the CreateDate field in my table. The CreateDate field is set as a datatime data type, but it's not saving it with the AM or PM.
Should I instead save it as 24 hour format and store that in the database and then have another variable set as my code below to display it as a 12 hour format to the end user?
$date = new DateTime();
$fdate = $date->format('Y-m-d h:i:s A');
Thank you in advance.