vb.net字符串格式转为日期型  比如 "20080815" 转换为"2008-05-15"
Dim a As Date 
Dim s As String = "20080815" 
a = CDate(Format(CInt(s), "0000-00-00")) 
MsgBox(a.Year)

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2021-06-02
  • 2022-02-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2021-11-27
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案