Sign in Join
FPDoc Onlineexperiment

MonthOfTheYear function

In unit DateUtils

Extract the month of a TDateTime indication.

Declaration

pascal
function MonthOfTheYear(const AValue: TDateTime): Word

Arguments

AValue

Date from which to extract the month number.

Function result

The month part of AValue.

Description

MonthOfTheYear extracts the month part of Avalue and returns it. It is an alias for MonthOf, and is provided for completeness only, corresponding to the other PartOfTheYear functions.

For an example, see the WeekOfTheYear function.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.