标签:
1. 身份证日期
DateTime.ParseExact((IDCard.Substring(6, 8)), "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture); //出生日期
DateTime.Now.Year - DateTime.ParseExact((IDCard.Substring(6, 8)), "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture).Year; //年龄
标签:
原文地址:http://www.cnblogs.com/love201314/p/5123771.html