Show: Delphi C++
Display Preferences

System.DateUtils.StartOfAMonth

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StartOfAMonth(const AYear, AMonth: Word): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall StartOfAMonth(const System::Word AYear, const System::Word AMonth);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Returns a TDateTime that represents 12:00:00:00 A.M. on the first day of a specified month.

StartOfAMonth returns the first expressible moment (12:00:000 A.M.) of the first day of a specified month.

The AYear parameter specifies the year of the desired month.

The AMonth parameter specifies the month. It can range from 1 through 12.

If the parameters do not specify a valid month, StartOfAMonth raises an EConvertError exception.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance