VB中自定义日期控件DTPicker格式问题

2024-12-18 20:01:36
推荐回答(1个)
回答1:

Private Sub Form_Load()
DTPicker1.Format = 3
DTPicker1.CustomFormat = "yyyy-MM-dd"
DTPicker1.Value = Date - 7
End Sub