[Mono-bugs] [Bug 81535][Nor] New - DateTime.Parse fails with 3-digit year
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun May 6 12:39:46 EDT 2007
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 rolfkvinge at ya.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81535
--- shadow/81535 2007-05-06 12:39:46.000000000 -0400
+++ shadow/81535.tmp.4448 2007-05-06 12:39:46.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 81535
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: rolfkvinge at ya.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DateTime.Parse fails with 3-digit year
+
+Testcase:
+
+using System.Threading;
+using System.Globalization;
+using System;
+
+class A {
+ static void Main ()
+ {
+ Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-
+US");
+ DateTime dt = DateTime.Parse ("7/7/100");
+ Console.WriteLine ("Success");
+ }
+}
+
+
+throws "Unhandled Exception: System.FormatException: String was not
+recognized as a valid DateTime." on Mono, while it prints "Success" on
+windows.
More information about the mono-bugs
mailing list