[Mono-dev] DateTime.Parse difference with .NET

Robert Jordan robertj at gmx.net
Mon Aug 8 17:05:30 EDT 2005


Martin,

> using System;
> 
> namespace DateFail
> {
> 	class MainClass
> 	{
> 		public static void Main(string[] args)
> 		{
> 			DateTime.Parse("17/07/2005 00:00:00");
> 		}
> 	}
> }
> 
> .NET Framework 1.1 result: Success
> Mono 1.1.8 result: 
> 
> Unhandled Exception: System.FormatException: String was not recognized as 
> a vali
> d DateTime.

This is not a bug. Check the value of you LANG environment variable.

Rob




More information about the Mono-devel-list mailing list