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