PDA

View Full Version : Date And Time Format


webhost
07 Jan 2002, 01:01
Needing some help with Date,time format using the following code which gives me this format.

01.06.2002 05:57 PM

Need help with 2 things if possible, first would like to spell out Month instead of just a number and second how would I change it to a 24 hour clock instead of a 12 hour clock.

<?php echo date ("m.d.Y h:i A");?>

Any help would be appreciated.

Thx

dabean
11 Jan 2002, 04:51
Change to read


<?php echo date ("m.F.Y H:i");?>


http://www.php.net/manual/en/function.date.php