summaryrefslogtreecommitdiff
path: root/fpcdocs/datutex/ex87.pp
blob: 0b5d72fae966d1bd358346d1dbcbe9dc0fac504d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Program Example87;

{ This program demonstrates the RecodeYear function }

Uses SysUtils,DateUtils;

Const
  Fmt = 'dddd dd mmmm yyyy hh:nn:ss';

Var
  S : AnsiString;

Begin
  S:=FormatDateTime(Fmt,RecodeYear(Now,1999));
  Writeln('This moment in 1999 : ',S);
End.