C#,VB.net

yyyyMMdd这样格式的字符串如何转datetime:

App:
DateTime.ParseExact("20080808", "yyyyMMdd", Thread.CurrentThread.CurrentCulture)

Web:
DateTime.ParseExact(EventTimeHourStart, "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-01-24
猜你喜欢
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-03-10
相关资源
相似解决方案