I am sorry if this is a simple thing, but I have spent hours trying to work it out.
I am building a database of events and use a 'datetime' field to store the date and time of each event, along with a few text fields for other details.
The problem is, the format "2004-10-12 19:30:00" for the date and time of the event (i.e. the generic 'datetime' format) is very unfriendly and I want to present it like this:
"Tuesday 12 October 2004, 7:30 PM"
I suspect a PHP function would be better, but I have tried both PHP and MySQL functions and don't seem to be able to get it right.
I think I found I found a way if the only thing I wanted to select was the date. My queries need to be "SELECT *...." because I need all the details of the event to be shown.
I know I could cheat by writing the date as text fields, but then I would lose the functionality to Order properly or to select by date range.
Most grateful for any help...