|
Posted by Gregory Nickoloff on 05/12/07 21:18
....what about date(); and/or time(); functions to format the information?
Much, much, much easier to make it look how you want than to tear the srting
apart and re-assemble it for just the sake of appearance.
Maybe something like this: date("l, F jS, Y",time($result['timestamp']))
....or whatever.
If I remember correctly, this will take "2000-01-01 00:00:00" and spit out
something along
the lines of: "Tuesday, January 1st, 2000" (or similar). Get the specifics
from php manual.
[Back to original message]
|