From Clomosy Docs

Revision as of 13:55, 27 February 2023 by ClomosyManager (talk | contribs) (Created page with " function EncodeDate(const Year, Month, Day Word):TclDateTime; The EncodeDate function produces a TclDateTime return value from the passed Year, Month, and Day values.<br> The allowed parameter values ​​are:<br> Year = 2000..9999<br> Month = 1..12<br> Day = 1..31 (depending on month/year)<br> '''Example:'''<br> '''var''' myDate : TclDateTime;<br> '''begin''' // Set my date variable using the EncodeDate function myDate := EncodeDate(2023, 02, 27);...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

function EncodeDate(const Year, Month, Day Word):TclDateTime;

The EncodeDate function produces a TclDateTime return value from the passed Year, Month, and Day values.

The allowed parameter values ​​are:
Year = 2000..9999
Month = 1..12
Day = 1..31 (depending on month/year)

Example:

var
  myDate : TclDateTime;
begin // Set my date variable using the EncodeDate function myDate := EncodeDate(2023, 02, 27); ShowMessage('Date set to '+DateToStr(myDate)); end;

Output:

Date set to 27.02.2023