Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
Should DateOnly Constructors Provide Exceptions?
Nicholas Piazza
546
Reputation points
It seems like the System.DateOnly constructors should provide for some exceptions. What if someone enters a year outside the range 1-9999? What if they enter Feb 29 with a year that is not a leap year? What if they enter Feb 30 or Apr 31?
Developer technologies | .NET | Other
Developer technologies | .NET | Other
Sign in to answer