[Mono-bugs] [Bug 49394][Nor] New - When parsing dates, 01 is not taken as 2001

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 6 Oct 2003 19:24:13 -0400 (EDT)


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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=49394

--- shadow/49394	2003-10-06 19:24:13.000000000 -0400
+++ shadow/49394.tmp.2385	2003-10-06 19:24:13.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 49394
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: When parsing dates, 01 is not taken as 2001
+
+Description of Problem:
+Mono does not handle two digit dates in parsing
+
+Steps to reproduce the problem:using System;
+class t {
+	static void Main () {
+		DateTime dt1 = DateTime.Parse("12/31/01 11:59:59 PM");
+		Console.WriteLine (dt1);
+	}
+}
+
+Actual Results:
+12/31/0001 11:59:59
+
+Expected Results:
+12/31/2001 11:59:59
+
+
+How often does this happen? 
+Always
+
+Additional Information: