I need to be able to calculate the number of working/business days in any given month.
(DATEDIFF(dd, "Month", DATE_SUB(ADDMONTH("Month",1),1)) + 1)
-(DATEDIFF(wk, "Month", DATE_SUB(ADDMONTH("Month",1),1)) * 2)
-(CASE WHEN DATENAME(dw, "Month") = 'Sunday' THEN 1 ELSE 0 END)
-(CASE WHEN DATENAME(dw, DATE_SUB(ADDMONTH("Month",1),1)) = 'Saturday' THEN 1 ELSE 0 END)
However it seems that Zoho does not recognise the "dd" or "wk" syntax of the DATEDIFF function.
Please can you advise how this can be achieved? My preference would be to use a Query Table.
Thank you.