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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Convert Excel Date formats to Oracle ones

Veerendra PatilNov 14 2024

Hi,

We have a 3rd party excel JS lib which we have integrated into our Oracle APEX app. From there we import the data from excel filed uploaded. The dates in the excel formatter are different. I would like to know how to convert the excel Date formats to Oracle ones.. (Generating the report out of imported data using the formats is breaking)

I have created the table and data.

CREATE TABLE vp_excel (
  excel_f VARCHAR2(50),
  orcl_f VARCHAR2(100)
);
/
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('m/d/yyyy','MM/DD/YYYY');
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('mmmm-yy','FMMonth-YY');
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('mmm-yyyy','Mon-YYYY');
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('d-mmm','DD-Mon');
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('ddd, mmm-yy','Dy, Mon-YY');
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('dd-mmm-yy','DD-Mon-YY');
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('mmmm d, yyyy','FMMonth DD, YYYY');
Insert into VP_EXCEL (EXCEL_F,ORCL_F) values ('dddd, mmm dd, yyyy','Day, Mon DD, YYYY');
COMMIT;
/

I would like to get the excel_f (excel formats) to match the orcl_f (Oracle Formats).

Please suggest.

Thanks.

This post has been answered by mathguy on Nov 19 2024
Jump to Answer
Comments
Post Details
Added on Nov 14 2024
16 comments
233 views