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

Announcements
We are aware of an issue with the Product Downloads page and looking into it.
cancel
Showing results for 
Search instead for 
Did you mean: 
aaronnayan
Creator III
Creator III

Setting a variable to a date (Simple)

Hi Experts,

Need of your help

I am Hard coding this into the script

I am trying to set a variable (vPriceDate) to the default date of 01/02/2017

how would i write this?

Set vPriceDate=????????????

thankyou

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

The another best way is

LET vPriceDate = Date('01/02/2017');

View solution in original post

3 Replies
mato32188
Specialist
Specialist

Hi,

set vPriceDate = MakeDate(2017,02,01).

BR

Martin

ECG line chart is the most important visualization in your life.
its_anandrjs
Champion III
Champion III

Write in a variable

Set vPriceDate ='01/02/2017';

its_anandrjs
Champion III
Champion III

The another best way is

LET vPriceDate = Date('01/02/2017');