How do I assign each value between a colon into a new variable? So 08:10:20 Would be hours,minutes and Seconds In VB.NET?
So
- Hours would be equal to 8
- Minutes would be equal to 10
- Seconds would be equal to 20
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The general way to parse a delimited string like that would be do do something like this:
However, if what you really want is a
Dateobject, then you could just do this:The “HH” means 24-hour time. If you want 12-hour time, use lower-case (“hh”).