悟生慧

 

vb.net字符串格式转为日期型

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)

posted on 2014-03-14 16:36  悟生慧  阅读(15525)  评论(0编辑  收藏  举报

导航