ex29.pp 225 B

123456789101112
  1. Program Example29;
  2. { This program demonstrates the EndOfTheMonth function }
  3. Uses SysUtils,DateUtils;
  4. Const
  5. Fmt = '"last day of this month : "dd mmmm yyyy';
  6. Begin
  7. Writeln(FormatDateTime(Fmt,EndOfTheMonth(Today)));
  8. End.