System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("en-US", false);
culture.DateTimeFormat.DateSeparator = string.Empty;
culture.DateTimeFormat.ShortDatePattern = "yyyyMMdd";
dateime dt=DateTime.ParseExact(startEndDate[1].ToString(),"yyyyMMdd", culture)
No comments:
Post a Comment