[Mono-bugs] [Bug 77633][Wis] New - DateTime.Parse() throws System.ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 24 05:58:13 EST 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mail at meebey.net.


--- shadow/77633	2006-02-24 05:58:13.000000000 -0500
+++ shadow/77633.tmp.17942	2006-02-24 05:58:13.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 77633
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mail at meebey.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: DateTime.Parse() throws System.ArgumentOutOfRangeException
+Description of Problem:
+DateTime.Parse() throws an unexpected/undocumented exception type when it's
+feed with a invalid year.
+Steps to reproduce the problem:
+// throws expected FormatException
+DateTime dt = DateTime.Parse("1234");
+// throws unexpected ArgumentOutOfRange exception
+DateTime dt = DateTime.Parse("12345");
+Actual Results:
+Exception Type:
+Exception Message:
+Valid values are between 1 and 9999 inclusive
+Parameter name: year
+Exception StackTrace:
+in <0x001b0> System.DateTime:Parse (System.String s, IFormatProvider fp,
+DateTimeStyles styles)
+in <0x00016> System.DateTime:Parse (System.String s, IFormatProvider fp)
+in <0x00013> System.DateTime:Parse (System.String s)
+Expected Results:
+exception of type FormatException
+How often does this happen? 
+Additional Information:

More information about the mono-bugs mailing list