I have a DateTime variable that can either be null or a Datetime. I figured a nullable DateTime type would work, but I am getting an error telling me that said
You need to go through the "Value" property:
lastInvite.Value.AddDays(7)
Note that this will throw an exception if the DateTime is actually null. Luckily, there is another property you can use to test for this, "HasValue".
if (lastInvite.HasValue){ /* code */ }