0

How to convert the specific string Aug 6, 2018 3:17:11 PM with the function to_date?

That string is a result of a Java parsing mechanism for JSON. I would like to be able to recover it directly from oracle.

My real problem is much more comprehensive that looks to be. It evolves the APEX_JSON usage, but it is not the question.

0
select to_date('Aug 6, 2018 3:17:11 PM', 'MON DD, YYYY HH:MI:SS PM') from dual;

TO_DATE('AUG6,20183
-------------------
2018-08-06 15:17:11

Datetime Format Models

| improve this answer | |
  • Balazs are there no differences between PM and AM in the oracle datetime format models? – Geison Santos Aug 10 '18 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.