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

Announcements
Discover how organizations are unlocking new revenue streams: Watch 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

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Date(Date, 'MMM YYYY') as MonthYear

or

MonthName(Date) as MonthYear

View solution in original post

2 Replies
sunny_talwar

Try this:

Date(Date, 'MMM YYYY') as MonthYear

or

MonthName(Date) as MonthYear

varunreddy
Creator III
Creator III
Author

Thanks Sunny