Jump to content

[SOLVED] how to format the time_stamp date


quickstopman

Recommended Posts

Where are you getting your date from?

 

<?php

$mydate = '2007-07-16 19:45:30';

echo date('F j, Y g:ia',strtotime($mydate));

?>

 

 

(If you're drawing the dates from a database, you can also format them in the query using DATE_FORMAT().  Seems like I answered this issue at least thrice today.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.