Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

different values displayed for a varible

Let vToday = Date(Today(), 'M/D/YYYY')

above is defined in the document script.

however vToday display 01/23/15,  Date(Today(), 'M/D/YYYY')  shows 2/10/15

why they're showing difference?

thanks

5 Replies
Anonymous
Not applicable
Author


run your script again. what is displayed with vToday?? should be 2/10/15

Michiel_QV_Fan
Specialist
Specialist

Is this run on a server that is not in sync with the current date?

reshmakala
Creator III
Creator III

Both show 2/10/15 for me. Can you reload it once?

Not applicable
Author

That solves mystery! thanks

kji
Employee
Employee

If you want the date to continually update use:

Set vToday = =Date(Today(), 'M/D/YYYY')

otherwise it will only show the date of when you last reloaded the script.