[Mono-bugs] [Bug 75396][Nor] Changed - Regression in DateTime.Parse

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 27 17:36:31 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 miguel at ximian.com.

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

--- shadow/75396	2005-06-27 17:36:11.000000000 -0400
+++ shadow/75396.tmp.25845	2005-06-27 17:36:31.000000000 -0400
@@ -1,17 +1,17 @@
 Bug#: 75396
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
-AssignedTo: mono-bugs at ximian.com                            
+AssignedTo: gonzalo at ximian.com                            
 ReportedBy: miguel at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: Regression in DateTime.Parse
@@ -65,6 +65,40 @@
                         // the comparison fails because formatType likely
 comes from another domain
                         //return (formatType == typeof (NumberFormatInfo))
 ? this : null;
                         return this;
                 }
+
+------- Additional Comments From miguel at ximian.com  2005-06-27 17:36 -------
+using System;
+using System.Collections;
+using System.Data;
+ 
+public class Foo
+{
+        public Foo() {}
+        public static void Main(string[] args)
+        {
+                DataTable dt = new DataTable();
+                dt.Columns.Add("StartDate", typeof(DateTime));
+ 
+                DataRow dr;
+                DateTime date = DateTime.Now;
+ 
+                for(int i = 0; i < 10; i++)
+                {
+                        dr = dt.NewRow();
+                        dr["StartDate"] = date.AddDays(i);
+                        dt.Rows.Add(dr);
+                }
+ 
+                DataView dv = dt.DefaultView;
+                dv.RowFilter = "StartDate >= '" +
+DateTime.Now.AddDays(2) + "' and StartDate <= '" +
+DateTime.Now.AddDays(4) + "'";
+ 
+		Console.WriteLine("Rows in Table {0}", dt.Rows.Count);
+		Console.WriteLine("Rows in View {0}", dv.Count);
+        }
+}
+


More information about the mono-bugs mailing list