Start New Discussion within our Software Development Community

Hello everyone, I have been disturbed for a week now. I have a project in 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.

Welcome gsmdreams.

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

This article has been dead for over six months. Start a new discussion instead.