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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Convert Month to Date

Hi,

My excel source I only have Month Name which is Jan, Feb, Mar and so on.  Please advise what is the script for converting to Date.  

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

How do you know the year?  Is it always the current year?  How about the day?  First of the month?  Plenty of ways to do it.  Here are a couple:

makedate(year(today()),month(date#(MonthName,'MMM')),1)
date(date#(year(today()) & MonthName,'YYYYMMM'))

View solution in original post

1 Reply
johnw
Champion III
Champion III

How do you know the year?  Is it always the current year?  How about the day?  First of the month?  Plenty of ways to do it.  Here are a couple:

makedate(year(today()),month(date#(MonthName,'MMM')),1)
date(date#(year(today()) & MonthName,'YYYYMMM'))