Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I calculate the number of weekdays between two date fields?

CALCULATE Fields weekdays
0
Posted

How do I calculate the number of weekdays between two date fields?

0

diffDays := (EndDate – StartDate) / 86400 + 1; strtDay := @Modulo(@Weekday(StartDate); 7); endDay := @Modulo(@Weekday(EndDate); 7); result := (diffDays – endDay + strtDay – 8) * 5 / 7 – @Max(-2; -strtDay) – @Min(1; endDay) + 5 – strtDay + endDay Can I look up Multiple Keywords using @Db functions? Yes, by separating the multiple keywords by a colon. Also, you can reference a field which contains multiple keywords, as long as that field has “Allow Multi-Values” checked ON. How do you prevent LotusScript errors when handling deletion stubs in document collections? Sometimes when you get a document collection for a LotusScript agent to handle, Notes passes you a deletion stub (this is probably a bug). In case you have to handle it, you can use this code: ‘ From Mike Woolsey ‘ IsErr_NOTES_ERROR is 4000 On Error lsErr_NOTES_ERROR Goto HandleDocError dim failureCode as Integer ‘ may be global dim test as Variant ….. set doc = dc.GetFirstDocument ‘ say this is a FTS result collection, the d

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123