Promotic

SetDateTime - method of the PmDateObject object

Description:
Sets the PmDateObject object to desired year, month, day, ....
Syntax:
Empty SetDateTime(Long year, Long month, Long day, Long hour, Long minute, Long second, Long milli)
Parameters:
year(Long) year. Number between 100-9999.
month(Long) month. Number between 1-12.
day(Long) day. Number between 1-31.
hour(Long) hour. Number between 0-23.
minute(Long) minute. Number between 0-59.
second(Long) second. Number between 0-59.
milli(Long) millisecond. Number between 0-999.
Note:
This method is also functional in Web panels.
Example:
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject();
oDate.SetDateTime(2023, 11, 7, 30, 0, 0, 0);

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.