Converting String to Time(0).

10e5x

Member
Joined
Jun 29, 2012
Messages
14
Programming Experience
Beginner
Dim input As String = "10:20:00"

How am i able to covert input as string to Time(0) data type?

Desired output: 10:20:00 (as Time(0) to be store in my database). Urgent help needed.

Many Thanks,
10e5x
 
The .NET TimeSpan structure is used to represent time and it has Parse, ParseExact, TryParse and TryParseExact methods, all of which will convert a String to a TimeSpan. You should read the MSDN documentation for each to see the differences among them and determine which is most suitable for your scenario and how to call it.
 
The .NET TimeSpan structure is used to represent time and it has Parse, ParseExact, TryParse and TryParseExact methods, all of which will convert a String to a TimeSpan. You should read the MSDN documentation for each to see the differences among them and determine which is most suitable for your scenario and how to call it.
Thanks can le. Thanks alot
 
Back
Top