Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

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

Write in a variable

Set vPriceDate ='01/02/2017';

its_anandrjs

The another best way is

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