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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
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.