My database uses a TIMESTAMP column for each article which gets data written to it whenever an article is written to the database. This is done automatically by the database using CURRENT_TIMESTAMP as the default value for the column.
Unfortunately, the date appears as 2011-11-24 19:26:57 which is not ideal for – well – anything.
What I’d like to do is write it to my page in the same format as Thu 24 Nov 2011 19:26:57.
Any advice?
You could use MySql builtin function to format date-time column