K
KenA
Hi,
When I use this in a WebForm it works perfectly :
DateTime dt = DateTime.Now;
IFormatProvider format = new System.Globalization.CultureInfo("pt-BR",
true);
dt = DateTime.Parse( dt.ToString(), format,
System.Globalization.DateTimeStyles.NoCurrentDateDefault );
But when I use it in WindowsForms I receive the following exception
msg:
System.FormatException
Additional Information : string was not recognized
Any ideas why?
When I use this in a WebForm it works perfectly :
DateTime dt = DateTime.Now;
IFormatProvider format = new System.Globalization.CultureInfo("pt-BR",
true);
dt = DateTime.Parse( dt.ToString(), format,
System.Globalization.DateTimeStyles.NoCurrentDateDefault );
But when I use it in WindowsForms I receive the following exception
msg:
System.FormatException
Additional Information : string was not recognized
Any ideas why?