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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
mazacini
Creator III
Creator III

Date in text format with Long Month Name

I am trying to load an excel file with dates in following text format: 2012 September 28.

How can I convert this to date number 41180?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

date#(MyDateField,'YYYY MMMM 28') + 27 as MyDateField

date#('2012 September 28','YYYY MMMM 28') is 41153 so add 27 to get 41180

Just kidding, but you get the idea I hope.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

date#(MyDateField,'YYYY MMMM 28') + 27 as MyDateField

date#('2012 September 28','YYYY MMMM 28') is 41153 so add 27 to get 41180

Just kidding, but you get the idea I hope.


talk is cheap, supply exceeds demand
mazacini
Creator III
Creator III
Author

Thank you Gysbert.

I have a number of different dates. So I changed your suggestion slightly to:

 

Date# (Date,'YYYY MMMM DD') as Date

Works great!