Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a very simple question, how to calculate the number of weekdays between 2 date fields?
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.
networkdays ('2007-02-19', '2007-03-01') returns 9
networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26') returns 8
Hi, the networkdays function is indeed correct. But do you know maybe how I should use it in case when I am counting days between two dates which in different cases can be: Date1 < Date2 or Date1>Date2.
Then the networkdays (Date1, Date2) is working only in case Date1 is earlier than Date2...
Do you have any tip?
Thanks in advance.
if(Date1<Date2,networkdays(Date1,Date2),networkdays(Date2,Date1))
It worked for me, thanks