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.
Example1:
JavaScriptSelect and copy to clipboard

var oDate = Pm.CreatePmDateObject();   // Creates the object with current time
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.27 SCADA system documentation MICROSYS, spol. s r.o.

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