Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

1 Solution

Accepted Solutions
sunny_talwar

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

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.