IFormatProvider provider = new System.Globalization.CultureInfo("en-CA", true);
String datetime = txtdate.Text;
DateTime dt = DateTime.Parse(datetime, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
String datetime = txtdate.Text;
DateTime dt = DateTime.Parse(datetime, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
No comments:
Post a Comment