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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
rupaliqlik
Partner - Creator
Partner - Creator

Convert Date Format

Hi Experts,

I want to change format of my Date.It is now in Num format,but I wants to change it into DD/MM/YYYY. How do I get.

5 Replies
oknotsen
Master III
Master III

Use the date() function (not to be mistaken by the date#() function).

Date ‒ QlikView

May you live in interesting times!
arulsettu
Master III
Master III

you can try this

date(datefield,'DD/MM/YYYY')

or

date(date#(datefield,'current format'),'DD/MM/YYYY')

Chanty4u
MVP
MVP

try below

Format:

LOAD * INLINE [

    dateformat

    20160705

];

Result:

LOAD *,

Date(Date#(dateformat,'YYYYMMDD'),'MM-DD-YYYY') AS Newdate

Resident Format;

Anonymous
Not applicable

Hi Rupali,

If you want to change all dateformats and timestamp formats on your app, change this variables on script:

SET DateFormat='DD/MM/YYYY';

SET TimestampFormat='DD/MM/YYYY h:mm:ss[.fff]';

If you enter the date as a number, you will see ever a number, then, when on script get the field use this expression:

Date(YourField) as YourField

Regards!!

AnusuyaRajavel
Partner - Contributor
Partner - Contributor

try below:

you can use date function : load Date(fieldname) from filename;