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=82245 --- shadow/82245 2007-07-31 03:49:45.000000000 -0400 +++ shadow/82245.tmp.18304 2007-07-31 03:49:45.000000000 -0400 @@ -0,0 +1,59 @@ +Bug#: 82245 +Product: Mono: Class Libraries +Version: 1.2 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: DateTime.Parse can't parse "1/Jan/1980" + +Please fill in this template when reporting a bug, unless you know what you +are doing. +Description of Problem: + + DateTime can't parse dates that have months as strings (eg "1/Jan/1980" +vs "1/1/1980") + +Steps to reproduce the problem: + +using System; +namespace mono_bug { + class Program { + static void Main(string[] args) { + DateTime date = DateTime.Parse("1/Jan/1980"); + } + } +} + + +Actual Results: + +Unhandled Exception: System.FormatException: String was not recognized as a +valid DateTime. + at System.DateTime.Parse (System.String s, IFormatProvider fp, +DateTimeStyles styles) [0x00085] in +/build/buildd/mono-1.2.4/mcs/class/corlib/System/DateTime.cs:869 + at System.DateTime.Parse (System.String s, IFormatProvider fp) [0x00000] +in /build/buildd/mono-1.2.4/mcs/class/corlib/System/DateTime.cs:825 + at System.DateTime.Parse (System.String s) [0x00000] in +/build/buildd/mono-1.2.4/mcs/class/corlib/System/DateTime.cs:820 + at mono_bug.Program.Main (System.String[] args) [0x00000] in +/home/si/code/mono/mono_bug/Program.cs:6 + + +Expected Results: + + This should compile correctly. + +How often does this happen? + + Every time. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
