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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
london1980
Contributor III
Contributor III

date format

Hello!

My database generating dates in this format

03-Aug-15

Anyone knows how to turn this into standard sortable date format?

cheers..

1 Solution

Accepted Solutions
sunny_talwar

May be try this in load script:

Date(Date#(DateField, 'DD-MMM-YY')) as DateField,

View solution in original post

4 Replies
sunny_talwar

May be try this in load script:

Date(Date#(DateField, 'DD-MMM-YY')) as DateField,

handry_orozco
Partner - Contributor III
Partner - Contributor III

Try,

from database:

Select Cast(Field1 AS Date) as Field1

     From Table1;

Or

QlikView:

Date(Field1,'DD/MM/YYYY') AS Field1

Joaquin_Lazaro
Partner - Specialist II
Partner - Specialist II

Hi

At the begining of the script you have this senteces

SET TimeFormat='h:mm:ss';

SET DateFormat='DD/MM/YYYY';

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

Use them combined with functions Date() and Date#() to get your desired date format

Hope it helps you

Joaquín

MK_QSL
MVP
MVP

If you use below while loading, you can sort according to numer


Load

     Date#(YourDateField,'DD-MMM-YY') as YourDateField

From Table...