Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

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

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!