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!

to_date pm/am vs hh24

MateuszHMay 23 2016 — edited May 23 2016

Hello,

Is it correct

select to_date('11/11/2014 11:11:11 AM','MM/dd/yyyy hh:mi:ss AM')  from dual;

or should be

select to_date('11/11/2014 11:11:11','MM/dd/yyyy hh:mi:ss AM')  from dual;

?

For multilanguages application it will be better to use following format?

select to_date('11/11/2014 24:11:11','MM/dd/yyyy hh24:mi:ss')  from dual;

Best regards,

M.

This post has been answered by Vysakh Suresh - 3035408 on May 23 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2016
Added on May 23 2016
4 comments
1,271 views