[Mono-bugs] [Bug 44797][Nor] New - DateTime.ToString can't handle dates with year < 1900
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sat, 14 Jun 2003 09:46:50 -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 lluis@ideary.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44797
--- shadow/44797 Sat Jun 14 09:46:50 2003
+++ shadow/44797.tmp.17416 Sat Jun 14 09:46:50 2003
@@ -0,0 +1,47 @@
+Bug#: 44797
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lluis@ideary.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DateTime.ToString can't handle dates with year < 1900
+
+Description of Problem:
+
+DateTime.ToString can't handle dates with year < 1900
+
+Steps to reproduce the problem:
+1. Run this:
+
+using System;
+
+public class Class1
+{
+ static void Main(string[] args)
+ {
+ DateTime tim = new DateTime (1850, 7, 1);
+ Console.WriteLine (tim.ToString());
+ }
+}
+
+Actual Results:
+
+Throws an exception.
+
+Expected Results:
+
+07/01/1850 00:00:00
+
+How often does this happen?
+
+Always