Need to download code?
beginning_php thread: date format
how do we echo a date format like 3 March 2002 ? the date in db is datetime type.
> how do we echo a date format like 3 March 2002 ? the date in db is > datetime type. What kind of database? MySQL? If so, do it in the SQL query: SELECT DATE_FORMAT(datetime_field, '%e %M %Y') FROM table Read this recent (2 weeks ago) thread for more info: http://p2p.wrox.com/archive/beginning_php/2003-02/40.asp Take care, Nik
Nope, it's interbase :)