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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
danielnevitt
Creator
Creator

Date Variables

Hi,

I have the following date variable:

vToday = Date(Today())

The date is returned in format DD/MM/YYYY

I would like to add vToday+1, however the date keeps being returend as a number ie 41727.

Does anyone know how I specify that the variables should all be in date format DD/MM/YYYY?

Thanks,

Daniel

2 Replies
its_anandrjs
Champion III
Champion III

Write a variable like

Let vToday = Date(Today()+1,'DD/MM/YYYY');

Hope this helps

Thanks & Regards

MK_QSL
MVP
MVP

Date itself is stored as number in QlikView. When you add or subtract any integer from it, it will always return a number.

To keep you date format, you need to use Date Function...

Let vToday = Date(Today()+1,'DD/MM/YYYY');

(same as Anand has suggested)