ex41.pp 528 B

12345678910111213141516171819
  1. Program Example41;
  2. { This program demonstrates the WeekOfTheMonth function }
  3. Uses SysUtils,DateUtils;
  4. Var
  5. N : TDateTime;
  6. Begin
  7. N:=Now;
  8. Writeln('Week of the Month : ',WeekOfTheMonth(N));
  9. Writeln('Day of the Month : ',DayOfTheMonth(N));
  10. Writeln('Hour of the Month : ',HourOfTheMonth(N));
  11. Writeln('Minute of the Month : ',MinuteOfTheMonth(N));
  12. Writeln('Second of the Month : ',SecondOfTheMonth(N));
  13. Writeln('MilliSecond of the Month : ',
  14. MilliSecondOfTheMonth(N));
  15. End.