T terry_zhou82 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-11 #1 我的程序上面设计了2个MonthCalendar控件,想通过程序知道两个日期间的差的天数,比如:一个是2007/10/2日,还有一个是2007/9/15日,要知道他们之间差几天,有哪位大侠帮我哦
A ANiDelphi Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-11 #3 uses DateUtils; Days := DaysBetween(MonthCalendar1.Date, MonthCalendar2.Date); ShowMessage('两日期相差' + IntToStr(Days) + '天');
uses DateUtils; Days := DaysBetween(MonthCalendar1.Date, MonthCalendar2.Date); ShowMessage('两日期相差' + IntToStr(Days) + '天');