Thursday, 5 September 2013

DateTime - Determine mensiversary (monthly anniversary)

DateTime - Determine mensiversary (monthly anniversary)

So I only have a CreatedDate to work with.
I have a scheduled task that runs everyday at 12 midnight and that needs
to get all records that fall on the same day of the month (but not if the
CreatedDate == DateTime.Now).
I would prefer this to be in LINQ since this is a database call but any
iteration logic would suffice, I think.

No comments:

Post a Comment