| [Overview][Constants][Procedures and functions][Index] | 
Encodes a year, month, week of month and day of week to a DateTime value
Source position: dateutil.inc line 330
| function EncodeDateMonthWeek( | 
| const AYear: Word; | 
| const AMonth: Word; | 
| const AWeekOfMonth: Word; | 
| const ADayOfWeek: Word | 
| ):TDateTime; | 
| AYear | 
 | Year part | 
| AMonth | 
 | Month part | 
| AWeekOfMonth | 
 | Week of the month part | 
| ADayOfWeek | 
 | Day of the week part | 
DateTime value representing the date specified by AYear, AMonth, AWeekOfMonth and ADayOfWeek.
EncodeDateTime encodes the values AYearAMonth, WeekOfMonth,ADayOfWeek, to a date value and returns this value.
For an example, see DecodeDateMonthWeek.
If any of the arguments is not valid, then an EConvertError exception is raised.
| 
 | Decode a DateTime value in a month, week of month and day of week | |
| 
 | Encodes a DateTime value from all its parts | |
| 
 | Encode a TDateTime value from a year, week and day of week triplet | |
| 
 | Encodes a year and day of year to a DateTime value | |
| 
 | Encode a Year, Month, Day, Hour, minute, seconds, milliseconds tuplet to a TDateTime value | |
| 
 | Encode a year, week and day of week triplet to a TDateTime value | |
| 
 | Encode a year, month, week of month and day of week to a TDateTime value | |
| 
 | Encode a year and day of year to a TDateTime value | |
| 
 | Calculate which occurrence of weekday in the month a given day represents |