RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.MonthOf Function

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

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

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

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

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