Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted

Re: Setting a variable to a date (Simple)

The another best way is

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

View solution in original post

3 Replies
Highlighted
Creator III
Creator III

Re: Setting a variable to a date (Simple)

Hi,

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

BR

Martin

Highlighted

Re: Setting a variable to a date (Simple)

Write in a variable

Set vPriceDate ='01/02/2017';

Highlighted

Re: Setting a variable to a date (Simple)

The another best way is

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

View solution in original post