mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-11 02:18:33 +02:00
14 lines
325 B
ObjectPascal
14 lines
325 B
ObjectPascal
Program Example14;
|
|
|
|
{ This program demonstrates the FormatDateTime function }
|
|
|
|
Uses sysutils;
|
|
|
|
Var ThisMoment : TDateTime;
|
|
|
|
Begin
|
|
ThisMoment:=Now;
|
|
Writeln ('Now : ',FormatDateTime('hh:mm',ThisMoment));
|
|
Writeln ('Now : ',FormatDateTime('DD MM YYYY',ThisMoment));
|
|
Writeln ('Now : ',FormatDateTime('c',ThisMoment));
|
|
End. |