System.DateUtils.StartOfTheMonth

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function StartOfTheMonth(const AValue: TDateTime): TDateTime;

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

説明

指定された TDateTime で特定された月の最初の日の午前 0 時 0 分 0 秒 0 ミリ秒を表す TDateTime を返します。

StartOfTheMonth 関数は,AValue で指定された TDateTime と同じ月の表現可能な最初の瞬間を返します。つまり,StartOfTheMonth は AValue の時刻部分を 0 で置換し,日を 1 に変更してその結果を返します。

関連項目