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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Nested Date functions

What does the following script will do if the MonthYear values are like '8-2014' , '11-2013' , '2-2015'.

MonthStart(Date(Date(Date#(MonthYear,'MM-YYYY'),'MM-YYYY'),'YYYYMM')) as P

-James

Labels (1)
5 Replies
sunny_talwar
MVP
MVP

Not sure if you need all that, this should be fine and give the same result

MonthStart(Date#(MonthYear,'MM-YYYY')) as P

Not applicable
Author

what date# does here ? Examples in the help are not clear. Please clarify.

lakshmikandh
Specialist II
Specialist II

sunny_talwar
MVP
MVP

It is an interpretation function. When QlikView is unable to understand a particular date format, we can use Date#() to help it understand the format the date is in.

Does that make sense?

sunny_talwar
MVP
MVP

I encourage you to read these blogs:

Why don’t my dates work?

Get the Dates Right