Link to home
Start Free TrialLog in
Avatar of Soluga
Soluga

asked on

vbnet convert string to time value

Hi,
I am using a MSChart control and want to represent a time value, the problem is the value ie 0000:0:26 is in a string format, how can I convert this into a numerical format to it can be used in the chart?

Many Thanks
Avatar of Bardobrave
Bardobrave
Flag of Spain image

You should manipulate your string to a valid date format and then use a date conversion function.

Check cDate function here for further info:

http://msdn.microsoft.com/en-us/library/s2dy91zy%28v=vs.80%29.aspx
Avatar of Soluga
Soluga

ASKER

Yeah, I have tried that, but it just says error converting string.
ASKER CERTIFIED SOLUTION
Avatar of Bardobrave
Bardobrave
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Soluga

ASKER

Yep OK, I will probably just convert into a double or a decimal.

Thanks