16,554
社区成员
发帖
与我相关
我的任务
分享
DateTimePicker1.Value = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date
DateTimePicker2.Value = DateTimePicker1.Value.AddMonths(1).AddSeconds(-1)
'或DateTimePicker2.Value =DateTime.Now.AddDays(1-DateTime.Now.Day).AddMonths(1).Date.AddSeconds(-1)
Me.DateTimePicker1.Value = DateTime.Now.AddDays(1 - DateTime.Now.Day)
Me.DateTimePicker2.Value = DateTime.Now.AddDays(-DateTime.Now.Day).AddMonths(1)
Me.DateTimePicker1.Value = CDate(Now().Year & "-" & Now().Month & "-1")
Me.DateTimePicker2.Value = Microsoft.VisualBasic.DateAdd(DateInterval.Day, -1, Microsoft.VisualBasic.DateAdd(DateInterval.Month, 1, CDate(Now().Year & "-" & Now().Month & "-1")))