Sign in Join
FPDoc Onlineexperiment

WeekOf function

In unit DateUtils

Extract week (of the year) from a given date.

Declaration

pascal
function WeekOf(const AValue: TDateTime): Word

Arguments

AValue

Date to extract week from.

Function result

Week part of AValue.

Description

WeekOf returns the week-of-the-year part of the AValue date/time indication. It is a number between 1 and 53.

For an example, see YearOf

See also

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