| [Overview][Constants][Procedures and functions][Index] | 
Return the first day of the year, given a date in this year.
Source position: dateutil.inc line 147
function StartOfTheYear(  | 
const AValue: TDateTime  | 
):TDateTime;  | 
AValue  | 
  | 
Date in year of which to return the start  | 
First day of the year as a TDateTime value.
StartOfTheYear extracts the year part of AValue and returns a TDateTime value with the date of the first day of that year (January 1), as the StartOfAYear function.
  | 
Return the first day of a given year.  | 
|
  | 
Calculate a TDateTime value representing the last day of a year, given a date in that year.  | 
|
  | 
Calculate a TDateTime value representing the last day of a year  | 
Program Example24; { This program demonstrates the StartOfTheYear function } Uses SysUtils,DateUtils; Const Fmt = '"First day of this year : "dd mmmm yyyy'; Begin Writeln(FormatDateTime(Fmt,StartOfTheYear(Today))); End.