Are you talking about displaying the date and the time.
You can do this
Code:
Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
Me.TextBox1.Text = Me.DateTimePicker1.Value
End Sub
If you are talking about selecting the date and the time? If you select the date the time is always included.
You will need to set the Format property of your DateTimePicker to "Custom" and set the Custom Format property to include the time, like "dd-MMM-yyyy hh:mm". I tested this and it still only shows the calendar control when you click the drop down arrow, but you can highlight the components of the time and manually enter new values.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.