|
TDateTime before2month = IncMonth(Now(), -2);
이렇게 하면 두달 전 오늘을 구할 수 있습니다.
연월일시분초뿐만 아니라 주를 더하고 빼는(IncWeek)도 있습니다.
extern PACKAGE System::TDateTime __fastcall IncMonth(const System::TDateTime Date, int NumberOfMonths = 1);
Description
IncMonth returns the value of the Date parameter, incremented by NumberOfMonths months. NumberOfMonths can be negative, to return a date N months previous.
서나 님이 쓰신 글 :
: 오늘을 기준으로 한달 전과 두달전 날을 구하고 싶습니다.
:
: 어떻게 하는지 알려주세요..^^*
|