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.

1 Answer 1

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

1
  • Balazs are there no differences between PM and AM in the oracle datetime format models? Commented Aug 10, 2018 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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