ScriptCore3.Date

From Soldat Community Wiki
Revision as of 19:09, 22 August 2013 by Mighty (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function Date: TDateTime
 Result: Current Date (encoded)

Description

This function will return TDateTime representing current Date (not including time)

Example

var
  curr: TDateTime;

begin
  curr := Date();
  WriteLn(FormatFloat('#0',curr)+' days have passed since 1899-12-30');
  WriteLn('This means it''s '+FormatDateTime('YYYY-mm-DD',curr));
end.