Solved

DateTimePicker: parse time

Posted on 2006-11-07
4
858 Views
Last Modified: 2008-02-01
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
Comment
Question by:Ruttensoft
4 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 17890251
Use DateTime.Parse(String) method which returns DateTime. If parsing succeeds, set DateTimePicker.Value.
0
 
LVL 10

Expert Comment

by:gangwisch
ID: 17891289
dim mydate as date=datetimepicker1.value
mydate.month,mydate.day,mydate.hour,mydate.minute
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now