[Overview][Constants][Procedures and functions][Index] |
Extract the date part from a DateTime indication.
Source position: dateutil.inc line 76
function DateOf( |
const AValue: TDateTime |
):TDateTime; |
AValue |
|
Datetime to extract date from |
Date part of AValue.
DateOf extracts the date part from AValue and returns the result.
Since the TDateTime is actually a double with the date part encoded in the integer part, this operation corresponds to a call to Trunc.
|
Extract the time part from a DateTime indication. |
|
|
Extract the year from a given date. |
|
|
Extract the month from a given date. |
|
|
Extract the day (of month) part from a DateTime value |
|
|
Extract the hour part from a DateTime value. |
|
|
Extract the minute part from a DateTime value. |
|
|
Extract the second part from a DateTime value. |
|
|
Extract the millisecond part from a DateTime value. |
Program Example1; { This program demonstrates the DateOf function } Uses SysUtils,DateUtils; Begin Writeln('Date is: ',DateTimeToStr(DateOf(Now))); End.
lazarus-ccr.sourceforge.net |