Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How Convert the time 16:00:00 or 08:00:00 HH12:MI AM format in oracle query
I try TO_CHAR ('16:00:00', 'HH12:MI AM') but it shows no AM / PM .
TO_CHAR ('16:00:00', 'HH12:MI AM')
Please check
Well, it works fine:
select to_char(to_date('16:00:00', 'hh24:mi:ss'), 'hh12:mi am') from dual;
The result is:
04:00 pm
Isn't it what you want?
Add a comment
TO_CHAR()
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.