|
Posted by Alvaro G. Vicario on 12/08/05 15:30
*** Greg Scharlemann escribió/wrote (7 Dec 2005 17:46:43 -0800):
> 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 think it easier to just get the date in unix timestamp format rather than
a string. Afterwards, you can use several PHP date functions to display it,
such as date() or strftime().
I suppose it comes from a MySQL query so try this:
SELECT UNIX_TIMESTAMP(date_field) FROM table
--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--
Navigation:
[Reply to this message]
|