[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Returns the day of the week.
Source position: datih.inc line 109
function DayOfWeek( |
DateTime: TDateTime |
):Integer; |
DayOfWeekreturns the day of the week from DateTime. Sundayis counted as day 1, Saturdayis counted as day 7. The result of DayOfWeekcan serve as an index to the LongDayNamesconstant array, to retrieve the name of the day.
None.
|
Return the current date. |
|
|
Converts a TDateTimevalue 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.