Currently my MySQL database Time column format is HH:MM:SS and when I query the database, I want the Time column to display something like this: HH:MM AM/PM but so far I wasn't able to do it. I used the UNIX_TIMESTAMP(Time_column) AS ljTime in my SQL query but when it display on the webpage it showed 0 0 PM and it suppose to show 07:00 PM. I have also tried this: DATE_FORMAT(ljTime, '%l:%i %p') AS ljTime but then when it show on the webpage, every TIME column is dispaly as 12:00 AM. Any help will be appreciated.
Many thanks in advance!
ljCharlie
Many thanks in advance!
ljCharlie