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

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 25 08:16:58 EDT 2005


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 at fiducial.fr.

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

--- shadow/72788	2005-05-25 05:15:23.000000000 -0400
+++ shadow/72788.tmp.25287	2005-05-25 08:16:57.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 72788
 Product: Mono: Class Libraries
 Version: 1.1
 OS: GNU/Linux [Other]
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: atsushi at ximian.com                            
 ReportedBy: informatique.internet at fiducial.fr               
 QAContact: mono-bugs at ximian.com
@@ -53,6 +53,27 @@
 
 ------- Additional Comments From informatique.internet at fiducial.fr  2005-04-08 06:56 -------
 Could someone tell me if this problem can be solved???
 
 ------- Additional Comments From atsushi at ximian.com  2005-05-25 05:15 -------
 Fixed in svn. BTW, date format are in mono/tools/locale-builder.
+
+------- Additional Comments From informatique.internet at fiducial.fr  2005-05-25 08:16 -------
+You're patch seems ok for the dd/mm/yy... 
+BUT i get an Unhandled Exception: System.FormatException: String was
+not recognized as a valid DateTime.
+for dd/mm/yyyy dates...
+In french the both formats (dd/mm/yy and dd/mm/yyyy) are valid...
+
+test case :
+class MainClass
+{
+	public static void Main(string[] args)
+	{
+		string matime=DateTime.Parse("01/02/2003").ToLongDateString();
+		Console.WriteLine(matime.ToString());
+		string nom_culture=System.Globalization.CultureInfo.CurrentCulture.Name;
+		string chaine=CultureInfo.CurrentCulture.DateTimeFormat.LongDatePattern;
+		Console.WriteLine(nom_culture);
+		Console.WriteLine(chaine);
+	}
+}


More information about the mono-bugs mailing list