Bug 11630 - DateTime.Parse(ddMMMyyyy) fails on Linux
Summary: DateTime.Parse(ddMMMyyyy) fails on Linux
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-04-06 00:07 UTC by Karl Tarbet
Modified: 2014-06-16 12:28 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Karl Tarbet 2013-04-06 00:07:58 UTC
The small test below fails on Mono  3.0.6 -- Compiled from tarball on CentOS 6.4  64 bit

Linux Output:
English (United States)
Error: parsing '10Feb2013'

Output With Microsoft .net:
English (United States)
2/10/2013 12:00:00 AM

using System;
    class TestddMMMyyyy
        static void Main(string[] args)
            DateTime t;
            if (DateTime.TryParse("10Feb2013", out t))
                Console.WriteLine("Error: parsing '10Feb2013'"); // mono prints this..
          // workaround  t = DateTime.ParseExact("10Feb2013", "ddMMMyyyy", new System.Globalization.CultureInfo("en-US"));
Comment 1 Miguel de Icaza [MSFT] 2014-06-16 12:28:41 UTC
Applied patch