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;   //年龄

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
相关资源
相似解决方案