help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Procedures and functions] Reference for unit 'dateutils' (#rtl)

WeekOf

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

Declaration

Source position: dateutil.inc line 121

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

YearOf

  

Extract the year from a given date.

DayOf

  

Extract the day (of month) part from a DateTime value

MonthOf

  

Extract the month from a given date.

HourOf

  

Extract the hour part from a DateTime value.

MinuteOf

  

Extract the minute part from a DateTime value.

SecondOf

  

Extract the second part from a DateTime value.

MilliSecondOf

  

Extract the millisecond part from a DateTime value.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505