在DELPHI7中該函數的幫助中有一個注意事項為
Note: WeekOfTheMonth uses the ISO 8601 standard definition of a week. That is, a week is considered to start on a Monday and end on a Sunday.該函數的功能應該是返回指定日期在當月第几個星期﹐返回數為1~~6的整數﹐可是我為什么就試不出來呢﹐大家幫我試一下﹐大家以2004年10月測試一下吧﹐按它的注意事項﹐應該2004-10-01是第一個日期呀﹐2004-10-02是第二個星期的呀﹐怎么不對呢
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(inttostr(WeekOfTheMonth(MonthCalendar1.date)));
end;