We have no idea what type
lastBody.ExpireDate
is, but from the error message and the property name I'd assume it's a
DateTime
- and there is understandably no
DateTime
constructor that takes a
DateTime
value as it's parameter: where would be the point given that the
DateTime
struct is immutable?
So it tries for a constructor overload that takes a single parameter - there is only one - and looks for an implicit cast that converts a
DateTime
to a
long
and again finds there isn't one, so it reports a compiler error.
Probably what you need to do is get rid of the new
DateTime
bit:
lastThirdParty.ExpireDate.AddDays(1)
Should do it, except ... the conditional operator needs both sides to be the same type, and the other side is a Ticks count.
Check what type
IssueDate
is and match both to that.