I have a datetimepicker control where I want to show both the date and time but so far have not been able to do so.
I have the properties format set to custom and then through code I am trying to do this:
VB Code:
' Format DateTime dtpShow.Value = CDate(dtShowDateTime.ToString("u")) dtpStart.Value = CDate(dtStartDateTime.ToString("u")) dtpEnd.Value = CDate(dtStopDateTime.ToString("u"))
At run time the control is only showing Long or Short depending on the properties. I want to show it like this: 2007-9-18 00:00:00




Reply With Quote