RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.MonthOfTheYear Function

Returns the month of the year represented by a TDateTime value.

Pascal
function MonthOfTheYear(const AValue: TDateTime): Word;
C++
Word MonthOfTheYear(const TDateTime AValue);

Call MonthOfTheYear to obtain the month of the year represented by a specified TDateTime value. MonthOfTheYear returns a value between 1 and 12.

Note: MonthOfTheYear returns the same value as the MonthOf function.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!