Skip to content

MonthOf

Extract the month from a given date.

Declaration

Source position: dateutil.inc line 145

function MonthOf(const AValue: TDateTime) : Word;

Arguments

Name Description
AValue Date to extract month from.

Function result

Month part of AValue.

Description

MonthOf returns the month part of the AValue date/time indication. It is a number between 1 and 12.

For an example, see YearOf

See also

Name Description
YearOf Extract the year from a given date.
DayOf Extract the day (of month) part from a TDateTime value.
WeekOf Extract week (of the year) from a given date.
HourOf Extract the hour part from a TDateTime value.
MinuteOf Extract the minute part from a TDateTime value.
SecondOf Extract the second part from a TDateTime value.
MilliSecondOf Extract the millisecond part from a TDateTime value.