daok Posted December 29, 2003 Posted December 29, 2003 Cast from type 'TimeSpan' to type 'String' is not valid. This is what I got when I do : s = mySR("temps_preparation") How can I cast the Variable TIME (mySQL) to String (Vb.NET)? Quote
bungpeng Posted December 29, 2003 Posted December 29, 2003 Did you try functions like "CStr" or "Format" to cast it? Quote
iebidan Posted December 29, 2003 Posted December 29, 2003 or even try the Convert.ToString.... Quote Fat kids are harder to kidnap
daok Posted December 30, 2003 Author Posted December 30, 2003 I have try format without success. But when I create a variable OBJECT the it works. Thx for the replies guys. Quote
*Gurus* Derek Stone Posted December 31, 2003 *Gurus* Posted December 31, 2003 You're probably looking for the type [msdn]System.DateTime[/msdn], not [msdn]System.TimeSpan[/msdn]. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.