[Mono-bugs] [Bug 72788][Maj] Changed - Problem with french DateTime.Parse

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 23 Feb 2005 06:58:52 -0500 (EST)


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 informatique.internet@fiducial.fr.

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

--- shadow/72788	2005-02-21 05:25:39.000000000 -0500
+++ shadow/72788.tmp.6232	2005-02-23 06:58:52.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 72788
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: informatique.internet@fiducial.fr               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -25,6 +25,25 @@
 DateTime matime=DateTime.Parse("21/02/05");
 Console.WriteLine(matime.ToString());
 
 I obtain "05/02/2021 00:00:00"
 on my console. I should obtain "21/02/2005" instead...
 there's apparently a problem with culture in DateTime.parse method...
+
+------- Additional Comments From informatique.internet@fiducial.fr  2005-02-23 06:58 -------
+I've a test program:
+string matime=DateTime.Parse("01/02/03").ToLongDateString();
+Console.WriteLine(matime.ToString());
+string nom_culture=System.Globalization.CultureInfo.CurrentCulture.Name;
+Console.WriteLine(nom_culture);
+
+
+I obtain :
+3 février 2001
+fr-FR
+
+I should obtain (i obtain this in MS.NET)
+1 février 2003
+
+but if I do a DateTime.Parse("01/02/2003")... It works well.
+why mono can't parse correctly a "dd/mm/yy" date???
+