Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
linoyel
Specialist
Specialist

Convert month-year to date

Hey!

I have a table with MonthYear column in the format like "Aug-2014".

In order to link it to my calendar table (all other tables are linked to the calendar by DateNum), I need to present my MonthYear column in date format. I don't care if "Aug-2014" will be presented like "2014-08-01".

Please help!

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Use makeDate()

It will help you

For details check in help menu.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

5 Replies
PrashantSangle

Hi,

Use makeDate()

It will help you

For details check in help menu.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
agomes1971
Specialist II
Specialist II

Yes it's true use:

TIP 3: USE THE MAKEDATE FUNCTION

If your date is stored in several fields, e.g. one field for year, a second for month and a third

for day, you should use the MakeDate function to create a proper date serial number for the

specified day:

MakeDate( Year, Month, Day ) as Date

Please see this pdf: http://community.qlik.com/servlet/JiveServlet/previewBody/3102-102-4-4191/DateFields-TechBrief-US_v2...

Regards

André Gomes

linoyel
Specialist
Specialist
Author

COOL!!!!

Thank you

its_anandrjs

Convert your field this way

Load

Year(MonthYear )&'-'&Num(Month(MonthYear)) as DateNum

From Location;

maxgro
MVP
MVP

=date(date#('Aug-2014', 'MMM-YYYY'), 'YYYY-MM-DD')

=date(date#(YourField, 'MMM-YYYY'), 'YYYY-MM-DD')