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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Date Format

I am having an issue with trying to put the current date onto a QVD.  I am getting 1905-06-27 in RunDate.   Here is what I am doing:

LET vFormatToday = date(vToday, 'YYYY-MM-DD')

Employee_Status:
LOAD DISTINCT
*,
[Employee Number] & '-' & [Week Ending] AS LinkKey,
Date($(vFormatToday), 'YYYY-MM-DD')  as RunDate
RESIDENT PA0000;

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

LET vFormatToday = Num(vToday);

Employee_Status:
LOAD DISTINCT
*,
[Employee Number] & '-' & [Week Ending] AS LinkKey,
Date($(vFormatToday), 'YYYY-MM-DD')  as RunDate
RESIDENT PA0000;

View solution in original post

3 Replies
Mark_Little
Luminary
Luminary

Hi Thom,

Where are you setting vToday?

Maybe try

LET vFormatToday = date(Today(), 'YYYY-MM-DD')


Mark

sunny_talwar
MVP
MVP

Try this:

LET vFormatToday = Num(vToday);

Employee_Status:
LOAD DISTINCT
*,
[Employee Number] & '-' & [Week Ending] AS LinkKey,
Date($(vFormatToday), 'YYYY-MM-DD')  as RunDate
RESIDENT PA0000;

tmumaw
Specialist II
Specialist II
Author

Thanks Sunny T.....That worked perfect.