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