I can' t save this leap date '02/29/2006' to sql server database. I'm using C#. Is there any particular code for this? Your help will be very much appreciated. Thanks
Asked
Active
Viewed 74 times
-6
-
8Well, 02/29/2006 is not a leap date, that is why. 2000, 2004 and 2008 is ,check the dates. – Priyan Perera Mar 07 '18 at 02:45
-
Got a calendar? Check 2006. Was it leap? – Ken White Mar 07 '18 at 02:49
2 Answers
3
Maybe it's because it's not a leap year? :)
2006 is not a leap year. Leap years occur usually every four years (those years whose number is divisible by four) except for century years (divisible by 100) whose number is not divisible by 400. 2006 is not divisible by 4, so it fails the first condition.

Pablo
- 3,004
- 1
- 12
- 19