System.DateUtils.EndOfTheMonth
Delphi
function EndOfTheMonth(const AValue: TDateTime): TDateTime;
C++
extern DELPHI_PACKAGE System::TDateTime __fastcall EndOfTheMonth(const System::TDateTime AValue);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
説明
指定された TDateTime 値により特定される月の最終日の最後のミリ秒を表す TDateTime 値を返します。
EndOfTheMonth 関数は,AValue で指定された TDateTime と同じ月の表現可能な最後の瞬間を返します。つまり,この関数は,AValue の時刻部分を午後 11 時 59 分 59 秒 999 ミリ秒で置換し,日を月の最終日に変更して,その結果を返します。