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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dates

I have the following Table File:

PatentExpiryDate.JPG

How can i convert the "Patent_Expire_Date_Text" field into a date?

Regards.

Chris

1 Solution

Accepted Solutions
shiveshsingh
Master
Master

Yeah, you are absolutely correct. Thanks for poiniting the mistake

date(date#(Patent_Expire_Date_Text,'MMM DD,YYYY'),'DD/MM/YYYY') as Patent_Expire_Date

View solution in original post

6 Replies
vishsaggi
Champion III
Champion III

Try this?

LOAD *, Date(Date#("Patent_Expire_Date_Text", 'MMM DD, YYYY'), 'MM/DD/YYYY') AS PatentExpireDate_Formatted

FROM youtablename;

Anonymous
Not applicable
Author

Thank you i will try it and advise

Regards

Chris

shiveshsingh
Master
Master

date(date#(Patent_Expire_Date_Text,'mmm dd,yyyy'),'DD/MM/YYYY') as Patent_Expire_Date


Use this while loading.

tamilarasu
Champion
Champion

FYI, you should use capital M for month i.e MMM. I believe small 'm' denotes Minutes and capital 'M' denotes Month.

shiveshsingh
Master
Master

Yeah, you are absolutely correct. Thanks for poiniting the mistake

date(date#(Patent_Expire_Date_Text,'MMM DD,YYYY'),'DD/MM/YYYY') as Patent_Expire_Date

tamilarasu
Champion
Champion

No problem