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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

Simple Date Calculation proving not so simple..........

Hi,

 

I simply need to calculate the number of days between today and 01/06/2018......  but whatever I try doesnt seem to want to work...... 

 

anyone able to assist with this most simple of expressions??

 

DATES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

Phil

Labels (1)
2 Solutions

Accepted Solutions
sunny_talwar

Are you dates read as a date field? If they are, you can just do this

Today() - DateField

If they are not, you can do this as a hack (suggest to fix them in the script)

Today() - Date#(DateField, 'MM/DD/YYYY')

 

View solution in original post

Marco
Partner - Contributor III
Partner - Contributor III

=today() - makedate(2018,6,1)

View solution in original post

3 Replies
sunny_talwar

Are you dates read as a date field? If they are, you can just do this

Today() - DateField

If they are not, you can do this as a hack (suggest to fix them in the script)

Today() - Date#(DateField, 'MM/DD/YYYY')

 

Marco
Partner - Contributor III
Partner - Contributor III

=today() - makedate(2018,6,1)
prees959
Creator II
Creator II
Author

Great Thanks!