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: 
akpofureenughwu
Creator III
Creator III

Date Format Conversion

Hello,

How do one convert a date format from dd/mm/yyyy to yyyy/mm/dd?

I attached a sample excel sheet.

Regards

1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Hi,

you can change like below

Load *,

Date(Date#(Datefiled,' dd/mm/yyyy'),'yyyy/mm/dd') as NewDate

resident  OldTable;

View solution in original post

4 Replies
its_anandrjs
Champion III
Champion III

In your load script make change for this set expression by this all date present in your qlik file change to YYYY/MM/DD format

SET DateFormat='YYYY/MM/DD';

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

See the attached file

Regards

Anand

akpofureenughwu
Creator III
Creator III
Author

Thank you sir but  what if I want to use a script to change it. How do I do it?

Regards

Chanty4u
MVP
MVP

Hi,

you can change like below

Load *,

Date(Date#(Datefiled,' dd/mm/yyyy'),'yyyy/mm/dd') as NewDate

resident  OldTable;

its_anandrjs
Champion III
Champion III

In your qlik file go to set expression >> By pressing Ctrl + E keys on the key board >> and find Set expressions

SET ThousandSep=',';

SET DecimalSep='.';

SET MoneyThousandSep=',';

SET MoneyDecimalSep='.';

SET MoneyFormat='£#,##0.00;-£#,##0.00';

SET TimeFormat='hh:mm:ss';

SET DateFormat='YYYY/MM/DD';

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

SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';

SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';

Regards

Anand