Published by exdone
Posted on January 30, 2011
Exception information:
Exception type: ArgumentOutOfRangeException
Exception message: Year, Month, and Day parameters describe an un-representable DateTime.
The error is thrown due to how the date is calculated . found this online
The only way that method throws the mentioned exception is when the year is less than 1 or greater than 9999 and the month is not between 1 and 12. So I’d suggest you step your code through tracing your date values and making sure they’re valid dates.