2013年4月27日
摘要: 方法1: DateTime a = Convert.ToDateTime(Regex.Replace("20130301", @"^(\d{4})(\d{2})(\d{2})$", "$1-$2-$3", RegexOptions.IgnoreCase));方法2: DateTime c = DateTime.ParseExact("20130301", "yyyyMMdd", null);方法3:var date = '201403051356236'.replace(/(\d 阅读全文
posted @ 2013-04-27 10:21 紫炁星 阅读(251) 评论(0) 推荐(0) 编辑