Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ashishpalkar
Creator III
Creator III

Convert Date

Hi There

How to convert this date into

05/22/2002 to May 2015

12 Replies
prabhu0505
Specialist
Specialist

Date(Date#('05/22/2002', 'MM/DD/YYYY'), 'MMM YYYY')

MarcoWedel

‌Fixed year offset +13?

MarcoWedel

Date(MonthStart(AddYears(Date#('05/22/2002', 'MM/DD/YYYY'),13)), 'MMMM YYYY')


regards


Marco

MarcoWedel

‌Or


MonthName(AddYears(Date#('05/22/2002', 'MM/DD/YYYY'),13))


regards


Marco


parthakk
Creator II
Creator II

Hi ashish,

The following part written in script allows you to dynamically get month name and year as 2015 in date format

MonthName(AddYears(DATE_FIELD_NAME,Year(Today())- Year(DATE_FIELD_NAME))) as new_date,

hope this helps you

Thanks,

Partha Kulkarni

mohammadkhatimi
Partner - Specialist
Partner - Specialist

Hie...


MonthName(AddYears(Date#('05/22/2002', 'MM/DD/YYYY'),13))



Hope this will hepls you..!!


Regards,

Mohammad

balasundaram
Creator II
Creator II

Hi

kindly you can use below expression too.

=monthname(addyears(date('05/22/2002'),13))

senpradip007
Specialist III
Specialist III

Have you reached your goal ? If no, please upload sample qvw as its a strange conversion as per my perspective.

MarcoWedel

if you want the same month in the current year, then one solution could be:

MonthName(SetDateYear(Date#('05/22/2002', 'MM/DD/YYYY'),Year(Today())))

hope this helps

regards

Marco