Hi,
Well I think what you should do is store the date and time according to the mysql specifications and when ever you display the datetime in the PHP file use PHP`s date funtion and format it what ever the format you want.
well when you inserting data you can use something like,
$sql="INSERT INTO tablename(fieldname) VALUES ('".date("Y-m-d H:i:s")."')";
When u r displaying the date, keep a global variable which will hold the display pattern and use the date function as below to get your result,
FYI: Global variable will help you to change the whole web sites date format incase, if you need to change the date pattern later on.
$globalVariable="m:d:y G:i A";
$sql="SELECT fieldname FROM tablename";
$row=mysql_query($sql) or die ("Error in the query");
$result=mysql_fetch_array($row) or die ("Error in getting the value");
$dbDate=$result['fielsname'];
print date($globalVariable,$dbDate);
Hope this is what you want. 🙂
Good luck
Regards,
Niroshan