Are you sure the current culture is the same between IIS and Visual Studio...? Try outputting System.Globalization.CultureInfo.CurrentCulture.ToString()
on both sites and see if there are any differences. If this is different, then Convert.ToDateTime(str)
will complain.
modified on Tuesday, June 8, 2010 4:16 AM