Promotic

GetWeekday - method of the PmDateObject object

Description:
day of the week (integer 0-6).
Syntax:
Long GetWeekday()
Note:
Values: 0=Sunday, 1=Monday ... 6=Saturday.

This method is also functional in Web panels.
See also:
Example1:
Creates the object with current time.
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject();
var nWeekDay = oDate.GetWeekday();
Example2:
Creates the PmDateObject object and sets it to date and time represented by PmDate - date and time in the PROMOTIC internal numeric form (the tDate variable).
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject(tDate);
var nWeekDay = oDate.GetWeekday();

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

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