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 [EMAIL PROTECTED]

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

--- shadow/80094        2006-11-30 04:09:04.000000000 -0500
+++ shadow/80094.tmp.23719      2006-11-30 04:09:04.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 80094
+Product: Mono: Runtime
+Version: 1.2
+OS: other
+OS Details: FreeBSD 6.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono DateTime.ParseExact  and Parse cannot recognize format
+
+Mono JIT compiler version 1.2.1
+Mono C# compiler version 1.2.1.0
+installed from ports using mono-merge
+Description of Problem:
+Mono DateTime.ParseExact and Parse cannot recognize format
+
+Steps to reproduce the problem:
+compile with gmcs:
+
+using System;
+namespace somename {
+class main {
+    static void Main(){
+DateTime date;
+            string y = string.Format( "{0}-{1}-{2} {3}",
+DateTime.Now.Year.ToString(), "Nov", "29" , "06:34" );
+            date = DateTime.ParseExact(y, "yyyy-MMM-dd hh:mm", null );
+//Or date = DateTime.Parse(y);
+            Console.WriteLine(date.ToString());
+ 
+                }
+        }
+}
+
+
+Actual Results:
+Unhandled Exception: System.FormatException: Invalid format.
+  at System.DateTime.ParseExact (System.String s, System.String[] formats,
+IFormatProvider fp, DateTimeStyles style) [0x00000]
+  at System.DateTime.ParseExact (System.String s, System.String format,
+IFormatProvider fp, DateTimeStyles style) [0x00000]
+  at System.DateTime.ParseExact (System.String s, System.String format,
+IFormatProvider fp) [0x00000]
+  at somename.main.Main () [0x00000]
+
+
+Expected Results:
+date output, the code work well on windows MS FW 2.0
+
+How often does this happen? 
+always
+
+Additional Information:
+none
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to