Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Character Field convert to date format

Dear Friends

My following date is stored as a character  field in oracle table. How can I convert into date format in Load script

Pls help me

07-MAR-13

2 Replies
maxgro
MVP
MVP

if you have a char use date# 

date#('07-MAR-13', 'DD-MMM-YYYY')

in script

load

     ...,

     date#(YOURCHARFIELD, 'DD-MMM-YYYY') as NewDate,

     ...

     ;

SQL

     select

     .....

     YOURCHARFIELD,

     ....

     from

     YOURORACLETABLE;

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

In Qlikview

LOAD

*,

Date(Date#(DateFieldName, 'DD-MMM-YYYY'), 'MM/DD/YYYY') AS FormattedDate

FROM DataSource;

In Oracle

SELECT

*,

To_char(DateFieldName, 'MM/DD/YYYY') AS FormattedDate

FROM TableName;

Hope this helps you.

Regards,

Jagan.