I want to display the TIME field from my mysql table on my website, but rather than showing 21:00:00 etc I want to show 8:00 PM. I need a function/code to do this or even an
I had been trying to do the same and got this page returned from a Google search. I worked a solution for the time 21:00:00;
using DATE_FORMAT(,'%l.%i%p') which returned 9.00PM
DATE_FORMAT(,'%l.%i%p')
putting a LOWER() function around it to return 9.00pm
LOWER()
So the full code is; DATE_FORMAT(,'%l.%i%p')
Worked OK for me ...