Solved

DateTimePicker: parse time

Posted on 2006-11-07
4
862 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cannot connect to sqlserver 8 35
Code enhancement 4 22
Groupbox Control ? 2 19
ASP.NET/VB: Convert Date and Time to YYYY-MM-DDTHH:MM:SS 3 14
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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