The DayOf function returns the day number of the month represented by the given date value. The resulting day number is a number between 1 and 31.
Declaration: Function DayOf( const AValue : TDateTime) : Word;
Function DayOfTheMonth(const AValue: TDateTime): Word;
An example follows.
DayOf has the same functionality as the DayOfTheMonth function.