以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何获取当前日期的年月  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=115514)

--  作者:乐悟陆
--  发布时间:2018/3/8 14:29:00
--  如何获取当前日期的年月
如何实时获取当前日期的年月,比如今天是2018年3月
--  作者:有点甜
--  发布时间:2018/3/8 15:21:00
--  

参考

 

Dim d As Date = Date.today
Dim s As String = format(d, "yyyy年MM月")
msgbox(s)