var oDate = Pm.CreatePmDateObject(); // Creates the object with current time var nWeekDay = oDate.GetWeekday();
var oDate = Pm.CreatePmDateObject(tDate); var nWeekDay = oDate.GetWeekday();