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: 
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
Champion III
Champion III

Try this

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

its_anandrjs
Champion III
Champion III

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
Champion III
Champion III

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
Champion III
Champion III

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