• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 874
  • Last Modified:

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
0
Ruttensoft
Asked:
Ruttensoft
1 Solution
 
AlexFMCommented:
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

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now