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

Please help how to format date

Facing problem when loading date field from excel file.

Please find the excel file and sample model attached.

PR.PNG

The problem is on date format of Start Date  as because my source excel file having start date : 2015/02/23

I have formatted to "dd/mm/yyyy" in excel. But it is showing in excel but pulling wrong data in qlikview.

1 Solution

Accepted Solutions
avinashelite

try this in the front end or calculated dimension it will work:

=if(IsNum([Start Date])='-1',Date(([Start Date]),'DD/MM/YYYY'),Date(num#([Start Date]),'DD/MM/YYYY'))

please find the attachment for the same

View solution in original post

23 Replies
vardhancse
Specialist III
Specialist III

Once check the default date format in script editor

SET DateFormat='MM/DD/YYYY';

MK_QSL
MVP
MVP

Use

=Date([Start Date])

as calculated dimension

Not applicable

Hi,

Try like below in caculated dimension,

=date([Start Date],'DD-MM-YYYY')

Then change label

vardhancse
Specialist III
Specialist III

Hi,

In script level we can use like

Date(Floor([Start date])) as Start_Date,

Time(Floor([Start date])) as Start_Time

suvechha_b
Creator III
Creator III
Author

Its not working.

suvechha_b
Creator III
Creator III
Author

I tried it but its not working

suvechha_b
Creator III
Creator III
Author

tried but not working

vardhancse
Specialist III
Specialist III

Might be issue with the excel data format once try to change in excel sheet and try to relaod

sibideepak
Creator II
Creator II

Hi suvechha.b,

Sometimes some extra spaces in the excel cause this problem,

so when you're loading script try,

date(trim([Start Date]),'DD-MM-YYYY')