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: 
Not applicable

number of the week day

Hi,

I want to set a variable value to the number of the weekday

So today is Thursday so the variable value should be '4'

When I try following then I get value as 'Thu'

=Weekday(Today())


But When I convert to number like below.. then I get Value as '3' instead of '4'

=num(Weekday(Today()))

am I missing anything?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Days start at 0. Monday is day 0. See the only help: weekday - script and chart function ‒ Qlik Sense


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

Days start at 0. Monday is day 0. See the only help: weekday - script and chart function ‒ Qlik Sense


talk is cheap, supply exceeds demand
Chanty4u
MVP
MVP

hi,

weekday(date)

Week day. Returns an integer between 0-6.

Example:

weekday( '1971-10-30' ) returns 5.

If the date format used does not correspond to the one set in your operating system, QlikView will not be able to make a correct interpretation.

Not applicable
Author

Thank you

Not applicable
Author

Thank you