Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
qvqfqlik
Creator
Creator

Help with date

I need to read date values from excel file which is in format of Jan 31 2017  7:00:41:000AM

I am unable to change the date format in excel, but how to read and change the date format in Qlikview ?

Please suggest all possible ways of reading and changing the format of this in Qlikview

Read just the date . timestamp is not necessary.

Labels (1)
13 Replies
sunny_talwar
MVP
MVP

My first response worked (with two spaces between Year and Time....

Date(Floor(TimeStamp#(DateField, 'MMM DD YYYY  h:mm:ss:fffTT'))) as Date

qvqfqlik
Creator
Creator
Author

Thanks Sunny! But for few dates it seems not converting.

c1.JPG

sunny_talwar
MVP
MVP

Try this:

Table:

LOAD Date as Old_Date,

  Date(Floor(TimeStamp#(Replace(Date, '  ', ' '), 'MMM D YYYY h:mm:ss:fffTT'))) as Date

FROM

[..\..\Downloads\Dates.xlsx]

(ooxml, embedded labels, table is Sheet1);

qvqfqlik
Creator
Creator
Author

Thank you very much Sunny. It worked awesome