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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Week day displaying Alpha week name not int

=weekday(today(0)) is displaying (wed). However, according to the help it should display the day of week as an integer. That is my goal, am I missing a setting?

Thanks,

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Anthony,

Actually, manual/help is wrong when it says it returns an integer (indeed, returns the short day name following the variable "DayNames" at the beggining of your script). But you can easily convert it into number

Num(WeekDay(Today(0)))


Hope that helps.

View solution in original post

3 Replies
Miguel_Angel_Baeyens

Hello Anthony,

Actually, manual/help is wrong when it says it returns an integer (indeed, returns the short day name following the variable "DayNames" at the beggining of your script). But you can easily convert it into number

Num(WeekDay(Today(0)))


Hope that helps.

Not applicable
Author

Thanks for the response. While i was waiting i actually did that.. in fact this is my exact code. =num(weekday(today(0))). Except for the result is 2. When i take off num it's "WED". I wouldn't think wed would be day two?

Thanks,

Not applicable
Author

Looks like it starts the week on monday at 0.

Thanks,