Re: MySqlDataAdapter fill DataSet with DateTime throw Exception
Posted by: Terri Kelley
Date: January 14, 2005 08:47AM

Not sure if this is what ya'll are looking for but because of the way .Net and mysql handle datetime differently I had to do the following. This is part of a sub when a user selects a name in a combo it retrieves a record from the datarowview.

Dim mydate As Date = Convert.ToDateTime(rowSel("dob").tostring)
Dim mydatedob as String = mydate.ToString("MMddyyyy")
txtMaskDob.Text = mydatedob

tk

Options: ReplyQuote


Subject
Written By
Posted
Re: MySqlDataAdapter fill DataSet with DateTime throw Exception
January 14, 2005 08:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.