If I call AddMonths on a DateTime object using too large an int, I get an ArgumentException written on my face with a polite message saying:
"An added or subtracted value results in an unimaginable DateTime. Parameter name: months"
What check should be done in the months argument before calling this method?
source
share