[Overview][Constants][Procedures and functions] | Reference for unit 'dateutils' (#rtl) |
Calculate which occurrence of weekday in the month a given day represents
Source position: dateutil.inc line 364
function NthDayOfWeek( |
const AValue: TDateTime |
):Word; |
AValue |
|
Date to check. |
Occurrence of weekday in the month of AValue.
NthDayOfWeek returns the occurence of the weekday of AValue in the month. This is the N-th time that this weekday occurs in the month (e.g. the third saturday of the month).
|
Encodes a year, month, week of month and day of week to a DateTime value |
|
|
Returns the day of the week. |
|
|
Decode a DateTime value in year, month, day of week parts |
|
|
Encodes a year, month, week, day of week specification to a TDateTime value |
|
|
Encode a year, month, week, day of week triplet to a TDateTime value |
Program Example104; { This program demonstrates the NthDayOfWeek function } Uses SysUtils,DateUtils; Begin Write('Today is the ',NthDayOfWeek(Today),'-th '); Writeln(formatdateTime('dddd',Today),' of the month.'); End.
No notes exist for this page yet.