Greetings,
As I have learned previously, in order to convert the date from a mySQL database to a human form, one would use this:
$date_mod = date("m/d/Y",$row["date"]);
if($date_mod == "12/31/1969") $date_mod = "N/A";
echo "$date_mod";
This would grab the date field, and convert it to a m/d/y format, if the result should be NULL or straight 00's, then the resulting date of 12/31/69 would be replaced with a N/A.
My question is, I am now working with a datetime field that requires BOTH the date AND the time.
As per the database, the format gets entered as such:
00/00/00 - 00:00:00
I'd like to be able to convert the date AND the time to human form. (even military time would be fine, so long as with my date conversions I get the time as well.)
I have found via search either time conversions or date conversions...but never both...
Any assistance in this dilema would be immensely appreciated.