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.
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
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
How do I get DateTimePicker1 to contain or show its value as a Short Date only "12/12/13" or "12/12/2013"
thanks