Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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);