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