Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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'))