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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variable

  Dear,

set vLockDate2='03-Sep-2015';

I set variable and assign value as above and want to show month end in another variable but its not show value as given below variable.
LET v2LockDate=MonthEnd(vLockDate2);

kindly guide how to show value.

Regards,

Zain.

1 Solution

Accepted Solutions
sunny_talwar

May be this:

LET vLockDate = Date#(03-Sep-2015', 'DD-MMM-YYYY');

LET v2LockDate = MonthEnd(vLockDate);

View solution in original post

7 Replies
Digvijay_Singh

Try setting formatting, You may need to apply required format as per your need.

LET v2LockDate=Date(Date#(MonthEnd(vLockDate2),'DD-MMM-YYYY'));


sunny_talwar

May be this:

LET vLockDate = Date#(03-Sep-2015', 'DD-MMM-YYYY');

LET v2LockDate = MonthEnd(vLockDate);

maxgro
MVP
MVP

LET v2LockDate=MonthEnd(Date#(vLockDate2,'DD-MMM-YYYY'));

Not applicable
Author


Thanks Sunny, i have got result.

Zain.

alexandros17
Partner - Champion III
Partner - Champion III

LET vLockDate2='03-sep-2015';

LET v2LockDate = MonthEnd(Date#(vLockDate2,'DD-MMM-YYYY')); 

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

LET vLockDate2= MakeDate(2015, 9, 3);


LET v2LockDate=MonthEnd(vLockDate2);


Hope this helps you.


Regards,

jagan.

Not applicable
Author

TRY LIKE THIS

LET VEND=MonthEnd(DATE(date#('$(vLockDate2)','DD-MMM-YYYY'),'DD/MM/YYYY'))