blob: a4806164acb2599e1fd62db4b01ee816d82a960c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Program Example30;
{ This program demonstrates the StartOfAMonth function }
Uses SysUtils,DateUtils;
Const
Fmt = '"First day of this month : "dd mmmm yyyy';
Var
Y,M : Word;
Begin
Y:=YearOf(Today);
M:=MonthOf(Today);
Writeln(FormatDateTime(Fmt,StartOfAMonth(Y,M)));
End.
|