1.11M Members

INSERT Date in MySql with VB

 
0
 

Hello everyone, I have been disturbed for a week now. I have a project in vb.net. And on forms I have two masked text boxes. One is for the user to enter their date of birth and in the second one Iam trying to get the date the record is created. With this one I get the current date from pc and format it to dd/mm/yyyy because I want the user to understand the date.
Now my question is. How do I INSERT the user date of birth and the the Now () date which is also in masked text box into a MYSQL database? I know how to insert other text but the date fails to appear in database.

 
0
 

Welcome gsmdreams.

Use Date.TryParseExact method to convert custom date format into system date format.

 
0
 

Give me a code example please.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article