"For developers", "Server scripts", "Functions description", "Date and time", "EncodeDate".
Function to calculate the date value from the year, month and day values.
function EncodeDate(wYear, wMonth, wDay: word): double;
Parameter |
Type |
Value |
---|---|---|
wYear |
word |
year value; |
wMonth |
word |
month value; |
wDay |
word |
day value. |
Date value that represents the specified year, month, and day.
var
dt: double;
begin
dt := EncodeDate(1979, 10, 9);
mLogScript(FormatDateTime('mm.dd.yyyy', dt), '');
dt := IncYear(dt, 37);
mLogScript(FormatDateTime('mm.dd.yyyy', dt), '');
end.
[14:50:37] (Log "EncodeDate"): 10.09.1979
[14:50:37] (Log "EncodeDate"): 10.09.2016