meenus
January 25th, 2010, 05:02 AM
Hi,
I want to parse data in string to a particular datetime format so that i am trying to use
DateTime.ParseExact ..
DateTime dateTime ;
DateTime.TryParseExact("10/20/2009", "dd/MM/yyyy", CultureInfo.InvariantCulture,DateTimeStyles.None, out dateTime);
But i have got the following error
" The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar"
pls give a solution to parse the date..
I want to parse data in string to a particular datetime format so that i am trying to use
DateTime.ParseExact ..
DateTime dateTime ;
DateTime.TryParseExact("10/20/2009", "dd/MM/yyyy", CultureInfo.InvariantCulture,DateTimeStyles.None, out dateTime);
But i have got the following error
" The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar"
pls give a solution to parse the date..