I'm doing a program for a college job, with a connection to the database.
In a table, I have a NASCIMENTO
column of type DATE
. In the program I have a MaskedTextBox
to insert the date of birth, however I put our dates means, DD/MM/YYYY
, and in the database the default is YYYY/MM/DD
, how do I convert this? Because I am not able to insert the data, due to the difference.
Would it be better to convert within the INSERT
of the procedure in the bank or do by C #?
Example: I entered the date 12/04/1992, it has to be turned into 1992/12/04 to be stored in the bank.