Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
carol_wu
Partner - Contributor
Partner - Contributor

Date Format: M/DD/YYYY and DD/M/YYYY to DD/M/YYYY

Dear Experts,

Now I have dates with date format both in 'M/DD/YYYY' and 'DD/M/YYYY' in qlikview. How can I convert all date with format in 'M/DD/YYYY' to 'DD/M/YYYY'?

Many Thanks! Date example attached.

2 Replies
Chanty4u
MVP
MVP

try

date(date#(Datefield,'M/DD/YYYY'),'DD/M/YYYY') as NewDate

MK_QSL
MVP
MVP

SET DateFormat='DD/M/YYYY';


Data:

LOAD

IF(IsNum(Date),Date(Date), Date(Date#(Date,'M/DD/YYYY'))) as Date

FROM

date.xlsx

(ooxml, embedded labels, table is Sheet1);