Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
darrellbutler
Creator
Creator

Today(0)


Hi, in my applications I have the following variable statement  LET vToday = Today(0);  Sometimes this command is ignored and defaults to yesterdays date, I am doing something silly ? Any advice would be gretaly appreciated.

Regards

Darrell.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi

today(0) gives you the date when the script ran.

See manual --> today()  for other options.

Stefan

View solution in original post

3 Replies
swuehl
MVP
MVP

Hi

today(0) gives you the date when the script ran.

See manual --> today()  for other options.

Stefan

kim_rormark
Partner - Contributor III
Partner - Contributor III

As swuehl says, the today(0) gives you the date when the script last ran. So if you open a QV-app that was last reloaded yesterday, it will show yesterdays date.

Do you have the same problem if you reload the document?

its_anandrjs

Hi,

Yes right as swuehl describe try using different varibles and use this functions

LET vToday = Today(0); 

LET vToday2 = Today(); 

LET vReload = Reloadtime(); 

LET vNow = Now();

And see the difference

Regards,

Anand