T tp168 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-01 #1 delphi中是否有类似sql中的dateadd函数,可以返回给定日期的前几天或前几个月 的日期???
Z zxb200 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-01 #5 uses dateutils; 跟天有關:IncDay() 跟月有關:IncMonth() 跟年有關:IncYear() 可參考幫助。 舉一個例子: 明年今日:IncYear(date,1); 去年今日:Incyear(date,-1); 其它類似。
uses dateutils; 跟天有關:IncDay() 跟月有關:IncMonth() 跟年有關:IncYear() 可參考幫助。 舉一個例子: 明年今日:IncYear(date,1); 去年今日:Incyear(date,-1); 其它類似。