Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

VS 2008 DatetimePicker with MSAccess problem

$
0
0
I have 2 controls on my form, both are datetimepickers. One is to capture a given date and the other is to capture a time (not the present time).
I have the first format set as SHORT, the second as TIME. When I look at the values in the program as I step through it I see DateTimePicker1 (THE DATE) as the entire date and Time. The Second one TimePicker shows just the Time.

Code:

MYCloseDate = DateTimePicker1.Value & " " & TimePicker.Text
I would like to put these to together so I can do a DateDiff with another set of time and Date values later on.

How do I get DateTimePicker1 to contain or show its value as a Short Date only "12/12/13" or "12/12/2013"

thanks

Viewing all articles
Browse latest Browse all 27349

Trending Articles



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