Public · Protected · Private
convert string to date yyyymmdd
Type: Public  |  Created: 2009-11-13  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • Regex regex = new Regex(@"^\d{8}$", RegexOptions.Compiled); if (!strVal.IsNullOrEmpty() && regex.Match(strVal).Success) { return DateTime.ParseExact(strVal, "yyyyMMdd", CultureInfo.InvariantCulture); }
    2009-11-13 23:14
This blog is frozen. No new comments or edits allowed.