Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

aaronnayan
Contributor

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

Re: Setting a variable to a date (Simple)

The another best way is

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

3 Replies
mato32188
Contributor III

Re: Setting a variable to a date (Simple)

Hi,

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

BR

Martin

Re: Setting a variable to a date (Simple)

Write in a variable

Set vPriceDate ='01/02/2017';

Re: Setting a variable to a date (Simple)

The another best way is

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