Sign in Join
FPDoc Onlineexperiment

MonthOf function

In unit DateUtils

Extract the month from a given date.

Declaration

pascal
function MonthOf(const AValue: TDateTime): Word

Arguments

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

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