Sign in Join
FPDoc Onlineexperiment

weekday function platform

In unit Dos

Return the day of the week.

Declaration

pascal
function weekday(y: LongInt; m: LongInt; d: LongInt): LongInt

Description

WeekDay returns the day of the week on which the day Y/M/D falls. Sunday is represented by 0, Saturday is 6.

Errors

On error, -1 is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.