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: 
chintan1989
Contributor II
Contributor II

Date Format Issue

Hi Friends 

In attached excel , I am unable to get the date in required format ie DD-MM-YYYY. 

I tried below 2 ways , however its not working.

date(date#(DATE),'DD-MM-YYYY') as Date,
date(DATE,'DD-MM-YYYY') as Date,

Kindly help. Thanks in advance.

 

Regards

Chintan

 

1 Solution

Accepted Solutions
Vegar
MVP
MVP

clipboard_image_0.png

My bad. I typed : instead of . it should be

Date(Timestamp#(Date,'DD/MM/YYYY hh.mm tt'), 'DD/MM/YYYY') as Date

View solution in original post

7 Replies
Vegar
MVP
MVP

See updated answer below

Vegar
MVP
MVP

Try this

date(timestamp#(DATE, 'DD/MM/YYYY hh:mm TT'),'DD-MM-YYYY') as Date

It looks like Excel design not  intepret the date column as a date/timeatamp column but a text. That's why you need to use date#() in order to tell Qlik that the column consists of timestamp.

rathore01
Partner - Contributor III
Partner - Contributor III

use below -

load

date(floor("Date"),'DD-MM-YYYY') as Date,

chintan1989
Contributor II
Contributor II
Author

The Date column comes Blank. 

chintan1989
Contributor II
Contributor II
Author

The Date column comes Blank.

Vegar
MVP
MVP

clipboard_image_0.png

My bad. I typed : instead of . it should be

Date(Timestamp#(Date,'DD/MM/YYYY hh.mm tt'), 'DD/MM/YYYY') as Date

chintan1989
Contributor II
Contributor II
Author

Thanks Vegar, appreciate your help.