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: 
cfountain72
Creator II
Creator II

Weekday function taking a day off

Hi Qlikkers,

Must be doing something wrong, but when I apply the Weekday function, it gives me one day off from what the day should be. For instance, choosing Weekday() on 12/14/2020 gives me Sunday, but that date is actually a Monday. I tried adding Date to simplify the timestamp, as well as Floor, but nothing seems to work. (The load script has FirstWeekDay set as 6 (Sunday).)

Any suggestions?

Snag_1f245905.png

Thanks in advance,

Chris

Labels (1)
1 Solution

Accepted Solutions
JosephMorales
Partner - Contributor II
Partner - Contributor II

Hi @cfountain72 

Could you check the DayNames variable in the script editor?
It should be as follows
SET DayNames = 'mon; tue; wed; thu; fri; sat; sun';

Regards

Joseph Morales

View solution in original post

2 Replies
JosephMorales
Partner - Contributor II
Partner - Contributor II

Hi @cfountain72 

Could you check the DayNames variable in the script editor?
It should be as follows
SET DayNames = 'mon; tue; wed; thu; fri; sat; sun';

Regards

Joseph Morales

cfountain72
Creator II
Creator II
Author

Amen Brother! That was it. Not sure how that got changed, but I adjusted it back, and it's all good now.

Thanks again,

Chris