Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetMonth - method of the PmDateObject object

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

var oDate = Pm.CreatePmDateObject();
oDate.SetMonth(7);
Example2:
JavaScriptSelect and copy to clipboard

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

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

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice