Re: Datarow - Date type
Posted by: Terri Kelley
Date: January 07, 2005 09:18PM

I think this is what you are asking. I have a text box with mask for dob in a form. Sending it to mysql as a new row for instance I do the following:

newRow("dob") = Convert.ToDateTime(txtMaskDob.Text)

and it converts it to the proper format for mysql.

Problem I am having is coming from mysql to the textbox, like looking up a record. Coming from the db to the textbox it drops leading zeros so a dob of 05-15-1966 would look like 51-51-966 in the dob textbox. Haven't figured that one out yet.

Hope that helps

tk

Options: ReplyQuote


Subject
Written By
Posted
January 06, 2005 11:55AM
Re: Datarow - Date type
January 07, 2005 09:18PM
January 12, 2005 01:01PM
January 13, 2005 03:50PM


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.