[Mono-bugs] [Bug 54047][Nor] Changed - DateTime.Parse does not support alternate date separator characters

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 8 Jun 2004 03:11:34 -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 atsushi@ximian.com.

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

--- shadow/54047	2004-03-23 13:19:12.000000000 -0500
+++ shadow/54047.tmp.32639	2004-06-08 03:11:34.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 54047
 Product: Mono: Class Libraries
 Version: unspecified
 OS: All
 OS Details: Gentoo 1.4
-Status: RESOLVED   
-Resolution: FIXED
+Status: ASSIGNED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: gert.driesen@pandora.be               
 QAContact: mono-bugs@ximian.com
@@ -62,6 +62,26 @@
 Created an attachment (id=6649)
 repro for DateTime.Parse bug
 
 
 ------- Additional Comments From dick@ximian.com  2004-03-23 13:19 -------
 Fixed in CVS
+
+------- Additional Comments From atsushi@ximian.com  2004-06-08 03:11 -------
+The assumption is not always correct:
+
+using System;
+using System.Globalization;
+
+public class Test
+{
+        public static void Main ()
+        {
+                DateTime.ParseExact ("02#25#2002", "MM/dd/yyyy",
+CultureInfo.InvariantCulture);
+//              DateTime.ParseExact ("02-25-2002", "MM/dd/yyyy",
+CultureInfo.InvariantCulture);
+        }
+}
+
+It raises an error. Apparently "02#25#2002" is not recognized as
+variant of "MM/dd/yyyy".