[Mono-list] ParseExact functionality

A Rafael D Teixeira rafael.teixeirabr at terra.com.br
Fri Jun 10 09:03:39 EDT 2005


Please file a bugzilla case at 
http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%3A%20Class%
20Libraries&component=CORLIB 

Thanks,

On Fri, 2005-06-10 at 07:58 -0400, Harry Holt wrote:
> I'm having a problem converting an ldap date string into a C# DateTime
> under mono.  The function I'm using is:
> 
> DateTime.ParseExact("20050707132527Z", "yyyyMMddHHmmss\\Z",
> System.Globalization.DateTimeFormatInfo.CurrentInfo);
> 
> Under mono, this throws an "Invalid Format" exception, but it works
> fine under Microsoft .NET.
> Same thing using System.Globalization.DateTimeFormatInfo.InvariantInfo

-- 
Rafael "Monoman" Teixeira 
Mono Hacker since 16 Jul 2001 - http://www.mono-project.com/
Mono Brasil Founding Member - http://monobrasil.softwarelivre.org/
Simios Proud Member - http://www.simios.org/ 
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://www.simios.org/blog/monoman



More information about the Mono-list mailing list