N net_morning Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-06 #1 每年五月份的第二个周日。 根据日期可以得到每个月的第几周,和周几,反过来如何实现呢?请大侠讲讲,谢谢!
S songrun Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-06 #2 通過計算,用encodedate來轉化為日期格式的
M maikee1978 Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-06 #3 W=dayofweek(07-05-01)没问题吧?? 然后 几周X7-W 简单说一下,呵
L liyinwei Unregistered / Unconfirmed GUEST, unregistred user! 2007-08-06 #4 uses DateUtils; var sDay: TDateTime; begin //每年五月份的第二个周日 TryEncodeDayOfWeekInMonth(2007,5,2,7,sDay); ShowMessage(DateTimeToStr(sDay)); end;
uses DateUtils; var sDay: TDateTime; begin //每年五月份的第二个周日 TryEncodeDayOfWeekInMonth(2007,5,2,7,sDay); ShowMessage(DateTimeToStr(sDay)); end;