EncodeDateMonthWeek function
Encodes a year, month, week of month and day of week to a TDateTime value.
Declaration
function EncodeDateMonthWeek(const AYear: Word; const AMonth: Word;
const AWeekOfMonth: Word;
const ADayOfWeek: Word): TDateTimeArguments
AYear | Year part. |
AMonth | Month part. |
AWeekOfMonth | Week of the month part. |
ADayOfWeek | Day of the week part. |
Function result
TDateTime value representing the date specified by
AYear,
AMonth,
AWeekOfMonth and
ADayOfWeek.
Description
EncodeDateTime encodes the values
AYear
AMonth,
WeekOfMonth,
ADayOfWeek,
to a date value and returns this value.
For an example, see DecodeDateMonthWeek.
Errors
If any of the arguments is not valid, then an
EConvertError
exception is raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
