var oDate = Pm.CreatePmDateObject(); // Creates the object with current time var nVal = oDate.GetValue();