如何在VB6中通过DATEPICKER获取SYSTEMDATE [英] HOW TO GET SYSTEMDATE BY DATEPICKER IN VB6
本文介绍了如何在VB6中通过DATEPICKER获取SYSTEMDATE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我想知道将来的日期
以前的日期不会被接受,那么我应该在vb6中做什么?
if I want to get future date
previous dates are not to entertained then what should i do in vb6?
推荐答案
设置日期选择器的^ ]属性设置为今天,用户只能选择将来的日期.
回答OP问题:
要将MinDate
始终设置为当前日期,请使用日期函数 [ ^ ].这样,用户有时只能选择将来的日期.
Set theMinDate
[^] property of your date picker to today and the user can only pick dates in the future.
Answer to OP question:
To set theMinDate
always to the current date use the Date function[^]. This ways the user at al times can only select dates in the future.
在日期选择器上设置MinValue属性.
Set the MinValue property on the date picker.
另一个更准确解决方案是=
dtpicker1.value = now
如果dtpicker1.value< now then ="=">
msgbox(输入正确的日期")
如果
the another more accurate solution is =
dtpicker1.value=now
if dtpicker1.value<now then="">
msgbox("enter correct date")
end if
这篇关于如何在VB6中通过DATEPICKER获取SYSTEMDATE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文