Show: Delphi C++
Display Preferences

System.DateUtils.StartOfTheWeek

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StartOfTheWeek(const AValue: TDateTime): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall StartOfTheWeek(const System::TDateTime AValue);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Returns a TDateTime that represents 12:00:00:00 A.M. on the first day of the week identified by a specified TDateTime.

StartOfTheWeek returns the first expressible moment of the same week as the TDateTime specified by AValue. That is, it replaces the time portion of AValue with 0, changes the day to Monday, and returns the result.

Note: StartOfTheWeek defines the week of AValue according to the ISO 8601 standard. That is, the week starts on Monday and ends on Sunday.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance