我如何...如何获取当前月份数据 [英] How do I...how to get current month year data
本文介绍了我如何...如何获取当前月份数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何...如何获取当前月份数据
解决方案
尝试:
Dim 现在 As DateTime = DateTime.Now
Dim 年作为 整数 = now.Year
Dim month 作为 整数 = now.Month
试试这个.. :)
昏暗今天= 日期。今天
昏暗天=今天。 Day
Dim month = today.Month
更多info
DateTime属性 [^ ]
How do I...how to get current month year data
解决方案
Try:
Dim now As DateTime = DateTime.Now Dim year As Integer = now.Year Dim month As Integer = now.Month
try this.. :)
Dim today = Date.Today Dim day = today.Day Dim month = today.Month
for more info
DateTime Properties[^]
这篇关于我如何...如何获取当前月份数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文