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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
varunreddy
Creator III
Creator III

Converting string to date

Hi Guys,

I have created a MonthYear field combining Month and Year

Month(Date) & '-' & Year (Date) as MonthYear.

Now this is displaying in string format. I want to convert this to date format and I want to calculate maximum date using MonthYear field.

Can anyone guide me?

Thanks in advance!

Regards,

Varun

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

Date(Date, 'MMM YYYY') as MonthYear

or

MonthName(Date) as MonthYear

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try this:

Date(Date, 'MMM YYYY') as MonthYear

or

MonthName(Date) as MonthYear

varunreddy
Creator III
Creator III
Author

Thanks Sunny