HotDocs Models: dayOfWeek( date )

Placeholder Replace With
date A date value

This expression determines on which day of the week a specific date falls and converts that value to an integer.

These integers are as follows:

Sunday = 1

Monday = 2

Tuesday = 3

Wednesday = 4

Thursday = 5

Friday = 6

Saturday = 7

For example, perhaps you want to determine whether a payment due date falls on a Saturday or Sunday. If it does, HotDocs moves the payment due date to the following Monday. The following script shows how this works:

if dayOfWeek( PaymentDate ) = 7

PaymentDate + 2 days

elseIf dayOfWeek( PaymentDate ) = 1

PaymentDate + 1 days

else

PaymentDate

endIf