Returns the day of the week.
Source position: datih.inc line 129
function DayOfWeek( |
DateTime: TDateTime |
):Integer; |
DayOfWeek returns the day of the week from DateTime. Sunday is counted as day 1, Saturday is counted as day 7. The result of DayOfWeek can serve as an index to the LongDayNames constant array, to retrieve the name of the day.
None.
|
Return the current date. |
|
|
Converts a TDateTime value to a date string with a predefined format. |
Program Example8; { This program demonstrates the DayOfWeek function } Uses sysutils; Begin Writeln ('Today''s day is ',LongDayNames[DayOfWeek(Date)]); End.