Robson,
In addition to the other comments.
I normally use 2 datetime picker controls. One for the Date AND one for the
Time.
To keep the two values "in sync" I normally use code similar to:
Private Sub pickerDate_ValueChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles pickerDate.ValueChanged
pickerTime.Value =
pickerDate.Value.Date.Add(pickerTime.Value.TimeOfD ay)
End Sub
Private Sub pickerTime_ValueChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles pickerTime.ValueChanged
Me.labelDateTime.Text = pickerTime.Value.ToString()
End Sub
In the above case I would use pickerTime.Value as the full date time value.
I normally use the following properties on the Time picker:
Format = Custom
CustomFormat = "HH:mm" (for 24 hour:min)
ShowUpDown = True
I normally encapsulate both date time picker controls in a User control that
has properties to simplify the getting & setting values...
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"Robson" <no****@nomeansno.com> wrote in message
news:dl*******************@news.demon.co.uk...
| How do I display the date AND the time in the date/time picker? If I use
a
| custom format, how can I do this AND stick to local date/time display
rules?
|
|
| Thanks,
|
|
|
| Robin
|
|
|