|
아래 함수들 중에 쓰면 될듯합니다.
extern PACKAGE Word __fastcall DayOfTheMonth(const System::TDateTime AValue);
Description
Call DayOfTheMonth to obtain the day of the month represented by a specified TDateTime value. DayOfTheMonth returns a value between 1 and 31.
Note: DayOfTheMonth returns the same value as the DayOf function.
----------------------------------------------------------------------------------------------
extern PACKAGE Word __fastcall DaysInAMonth(const Word AYear, const Word AMonth);
Description
Call DaysInAMonth to obtain the number of days in the specified month of the specified year.
AYear is a year between 1 and 9999 (inclusive).
AMonth is a month between 1 and 12 (inclusive).
----------------------------------------------------------------------------------------------
extern PACKAGE Word __fastcall DaysInMonth(const System::TDateTime AValue);
Description
Call DaysInMonth to obtain the number of days in the month of the TDateTime value specified by AValue.
----------------------------------------------------------------------------------------------
extern PACKAGE System::TDateTime __fastcall EndOfAMonth(const Word AYear, const Word AMonth);
Description
EndOfAMonth returns the last expressible moment (11:59:59.999 PM) of the last day of a specified month.
The AYear parameter specifies the year of the desired month.
The AMonth parameter specifies the month. It can range from 1 to 12.
If the parameters do not specify a valid month, EndOfAMonth throws an EConvertError exception.
BlackNetwork 님이 쓰신 글 :
: 마지막 날짜를 가져 오고 싶습니다.....다음달에 1일을 가져 와서 -1일 해주면 될꺼 같은데- _-잘 안돼네요....~
: 부탁 드립니다.~
|