1,yyyyMMdd

DateTime date = DateTime.ParseExact("20190101", "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture);

2,ddMMyyyy

DateTime date = DateTime.ParseExact("15/04/2019", "dd/MM/yyyy", System.Globalization.CultureInfo.GetCultureInfo("en-US"));

 

相关文章:

  • 2022-02-19
  • 2021-12-26
  • 2021-10-10
  • 2022-12-23
  • 2021-11-24
  • 2021-09-27
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案