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!

How to convert date format(dd/mm/yyyy) having values with AM and PM into format (yyyy-mm-dd).

Vasu bodsSep 22 2019 — edited Sep 22 2019

How to convert date format(dd/mm/yyyy) having values with AM and PM into format (yyyy-mm-dd).

Source:

-----

Date_Column (datatype)

----------------------------

3/5/2019 12:24:36 AM  Varchar2(24)

12/6/2019 09:34:56 PM  Varchar2(24)

9/12/2019 04:12:35 AM  Varchar2(24)

1/10/2019 02:37:28 PM Varchar2(24)

I want to convert date values like below output

Date_column(datatype)

-------------------------

2019-05-03  Date

2019-06-12 Date

2019-12-09 Date

2019-10-01 Date

Please help me how to convert as my desired output.

Thanks,

Vasu

This post has been answered by mathguy on Sep 22 2019
Jump to Answer
Comments
Post Details
Added on Sep 22 2019
2 comments
12,389 views