Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

set format

Hi all,

I have a variable with hard coded  but I want to be dynamic how can set this with the same format

Current Variable:

vToday==num(Timestamp#('08/31/2017 05:00:00','MM/DD/YYYY hh:mm:ss'))

so I need that date should dynamic

8 Replies
prma7799
Master III
Master III

Like this??

vToday=num(Timestamp(Today(),'MM/DD/YYYY hh:mm:ss'))

its_anandrjs

Try this

=Num(Timestamp(Today(),'MM/DD/YYYY hh:mm:ss'))

its_anandrjs

Use NOW() in place of Today()

Let vToday =Num(Timestamp(Nowy(),'MM/DD/YYYY hh:mm:ss'));

soniasweety
Master
Master
Author

not working

its_anandrjs

Sorry it is NOW()

Let vToday =Num(Timestamp(Now(),'MM/DD/YYYY hh:mm:ss'));

soniasweety
Master
Master
Author

tried that still not working

prma7799
Master III
Master III

Please share some sample file and expected output.

its_anandrjs

Ok try this with Floor or not required in the Num format than use timestamp

Let vToday = Floor(Timestamp(Now(),'MM/DD/YYYY hh:mm:ss'));

Let vToday1 = Timestamp(Now(),'MM/DD/YYYY hh:mm:ss');


OP5.PNG


See Attached