W wjiachun Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-15 #2 判断第几周可以用 (当前日期-当年1月1日+1) div 7
T tianwater Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-15 #4 可是日期相减后的结果是双精度的值,而我们要取整,再进行整除。
L leebons Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-02 #6 give you a example var ; weekCount : Integer; begin ; weekCount := Trunc(DateTime1 - DateTime2) div 7+1; end;
give you a example var ; weekCount : Integer; begin ; weekCount := Trunc(DateTime1 - DateTime2) div 7+1; end;