I want to convert a nullable DateTime (DateTime?) to a DateTime, but I am getting an error:
DateTime?
DateTime
Cannot implicitly convert type
How about the following:
DateTime UpdatedTime = _objHotelPackageOrder.UpdatedDate.HasValue ? _objHotelPackageOrder.UpdatedDate.value : DateTime.Now;