Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21342

Set value of the datetime picker to default to the current date vb6

$
0
0
I need help to set the value of the date time picker control to the current date . I need to allow my users to enter a date in the past so setting the min date property to today is not an option. Any alternatives? I have tried
Code:

DTPicker1.Value = Date
and
Code:

DTPicker1.Value = Now
. This is not giving the results I expect, its giving me another date, today its giving me yesterdays date

Viewing all articles
Browse latest Browse all 21342

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>