Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

QlikSense Date Variable Issue

Dear all,

I am storing a date into Variable vLMaxDate like      =date(addyears(max([Posting Date]),-1), 'DD/MM/YYYY')  when i view this variable i am getting wrong date result  16/jun/1900  actually it should  01/12/2016.



My date format is   DD/MM/YYYY  HH:MM:SS AM/PM


Any idea what will be the issue ?


Vikas


Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
2 Replies
prma7799
Master III
Master III

Check format for Posting Date

try this in vDT

=Max(date([Posting Date], 'DD/MM/YYYY'))

tresesco
MVP
MVP

This is perhaps a format issue. Try using parsing function like:

=date(addyears(max(Date#([Posting Date],'DD/MM/YYYY  HH:mm:SS TT')),-1), 'DD/MM/YYYY')


Note: 'MM' (month) and 'mm' (minute) are different and that alone potentially can trouble you.



Edit: corrected a bracket