Sign in Join
FPDoc Onlineexperiment

DayOfTheMonth function

In unit DateUtils

Extract the day (of month) part of a TDateTime value.

Declaration

pascal
function DayOfTheMonth(const AValue: TDateTime): Word

Arguments

AValue

TDateTime value to extract day from.

Function result

Day in the month.

Description

DayOfTheMonth returns the number of days that have passed since the start of the month till the moment indicated by AValue. This is a one-based number, i.e. the first day of the month will return 1.

For an example, see the WeekOfTheMonth function.

See also

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