|
Posted by Sadara on 12/09/05 03:22
Greg Scharlemann wrote:
> If I have a date that looks like: 2005-12-07 10:10:00
>
> How could I manipulate it in php to say "Dec, 07, 2005"?
>
> I can separate the string at the space, but don't know where to go from
> there....thanks for any suggestions.
$unixTimestamp = strtotime ("2005-12-07 10:10:00") ;
echo date("M, d, Y", $unixTimestamp);
Navigation:
[Reply to this message]
|