Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert Varchar2 field to 24 hours date

nirDec 19 2012 — edited Dec 20 2012
Hi all,

I want to display a Varchar field e.g. *15-MAR-2012 04:21:05* in a 24 hours date field.

Here is the query i have used.

TO_date(+<String field>+, 'DD-MM-YYYY hh24:mi:ss')

output --> *15-MAR-2012 04:21:05*

But it still displaying as 12 hours value..

How can I do this ??

Thank You,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2013
Added on Dec 19 2012
24 comments
8,989 views