vb读取系统年月日

2024-11-28 18:45:58
推荐回答(3个)
回答1:

直接用Now,不要这么麻烦还通过Data转?
a = Month(Now)
b = Year(Now)
c = Day(Now)

回答2:

Dim a as string
Dim b as string
Dim c as string
Data = Now
a = Format(Data,"yyyy")
b= Format(Data,"mm")
c= Format(Data,"dd")

回答3:

看代码没啥不对啊,出啥错误提示了?