Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Worksday in a date difference

Dear All,

I need to count the number of work days (no staurdays and sundays) in a difference of two dates. Please help with this expression.

In SQL...   datediff('dw',date1,date2)

Thanks in advance.

André Rodrigues

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Hi.

You could use  function networkdays().

networkdays (start:date, end_date {, holiday})

Returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps.

Or calculate it manually, it's not so hard.

View solution in original post

2 Replies
whiteline
Master II
Master II

Hi.

You could use  function networkdays().

networkdays (start:date, end_date {, holiday})

Returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps.

Or calculate it manually, it's not so hard.

Anonymous
Not applicable
Author

Whiteline.

Thanks. It works fine.