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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Function to know Friday or Saturday or Sunday

Hi,

Is anybody know the date function to get the date is Friday or Saturday or Sunday?

I could not find in Manual.

Thanks for your reply,

Qvsu

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

If(weekday(Date)>3, 'Friday, Saturday or Sunday')

View solution in original post

7 Replies
martin59
Specialist II
Specialist II

Hello,

If you want to know the day of week, you have the WeekDay(Date) function.

Martin

Anonymous
Not applicable
Author

If(weekday(Date)>3, 'Friday, Saturday or Sunday')

Not applicable
Author

Thanks Michael and Martin.

Not applicable
Author

Hi,

Again. I tried to check Weekday('2010-05-14') returns "Fri" instead of number.

Is it because of the my OS date setting or anywhere that I should check?

hector
Specialist
Specialist

Hi, it shows 'Fri', but internally is a number, you can check this with num(weekday(datefield))

Rgds

martin59
Specialist II
Specialist II

You have an environment variable which format your data.

It is this line :

SET DayNames='lun.;mar.;mer.;jeu.;ven.;sam.;dim.';


If you prefer to see the numbers, you can convert to num like that :

num(WeekDay(Date))


Martin

Anonymous
Not applicable
Author

Correct, it is dual, text AND number at the same time.
(Same about months.)