Solved

DateTimePicker: parse time

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

21 Experts available now in Live!

Get 1:1 Help Now