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);

DateUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!