Promotic

SetYear - method of the PmDateObject object

Description:
Sets the PmDateObject object to desired year (eventually month, day).
Syntax:
Empty SetYear(Long year, [Long month], [Long day])
Parameters:
year(Long) year. Number between 100-9999.
month[optional] (Long) month. Number between 1-12.
If not set, then the month is not changed.
day[optional] (Long) day. Number between 1-31.
If not set, then the day is not changed.
Note:
This method is also functional in Web panels.
See also:
Example1:
JavaScriptSelect and copy to clipboard

var tDate = Pm.CreatePmDateObject();
tDate.SetYear(2023);
Example2:
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject();
oDate.SetYear(2023, 7, 28);

History:
Pm8.02.00: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.