ProjParameters::dateEndOfWeekOnAOS Method
Retrieves the date of the end of the week.
Syntax
server public static date dateEndOfWeekOnAOS(date transDate)
Run On
Server
Parameters
- transDate
Type: date
The date for which the end of the week date information is desired.
Return Value
Type: date
The date of the end of the week.
Remarks
The first day of the week is determined by the firsDayOfWeek function that is based on AOS locale.If the week starts on Sunday, the end of the week will be next Saturday similarly if the week starts on Monday the end of the week will be next Sunday The logic can be simplified into a single if else block but might be difficult to follow.