79207027

Date: 2024-11-20 11:41:25
Score: 2
Natty:
Report link

You're on the right track. Adding years is this format:

datefield1.AddYears(3)

It's a blind add of 3 years though & has caused me some issues in the past with accuracy I needed.

Keep leap years in mind because 2/29/2024 + 3 years won't give the same date

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: JRrelyea