Am I doing something wrong with converting a date to string when I want the hours to in 12 hour and not 24 hour format?
Code: Select all
dbadmin=> select sysdate, to_char(sysdate, 'HH:MI AM');
sysdate | to_char
----------------------------+----------
2012-08-21 13:31:07.529333 | 13:31 PM
(1 row)
Update: Note that the HH format worked fine in Vertica 5 to convert to 12 hour clock when used in conjunction with AM or PM... I am having this issue in Vertica 6.