Validating Execution Date
This function performs the following validation on the date input:
-
Checks the date is in the future (is after the current date), if the date is in the past then the service returns
valid=false -
If the date is in the future, the service will return
valid=true, the date passed in as well as the calculated settlement date (which is calculated by adding thesettlementLeadDaysto the execution date, taking into account non-working days as defined in thecalendarIdinput) -
If the date input is the current date and the current time is after the cutOffTime input, then the service will return
valid=false -
If the date input is the current date and the current time is before the cutOffTime input, then the service will return
valid=true, the date passed in as well as the calculated settlement date (which is calculated by adding thesettlementLeadDaysto the execution date, taking into account non-working days as defined in thecalendarIdinput)