DateTimePicker: parse time

Hello

How can I parse the time from a string into a datetimepicker?

Is it possible to do something like this: datetimepicker1.parse(Hours, minutes, seconds)?

Thanks

Sven
RuttensoftAsked:
Who is Participating?
 
AlexFMConnect With a Mentor Commented:
Use DateTime.Parse(String) method which returns DateTime. If parsing succeeds, set DateTimePicker.Value.
0
 
gangwischCommented:
dim mydate as date=datetimepicker1.value
mydate.month,mydate.day,mydate.hour,mydate.minute
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.