Hi, I am using the DbForge Studio Express for MySql with Connector Net 6.4.3 MySqldata.dll. I am also using Visual Basic 2010 Express on a Win 7 (64bit) laptop.
I have entered data and dates in the format of dd/mm/yyyy via the DbFore software and they display as dd/mm/yyyy and also display in the VB program in the same format in a VB DateTimePicker control. But when I attempt to enter a date through the VB program and the same DTP back to MySql table it gives me the error of: "Incorrect date value 19/06/1962 for column 'DateOfBirth' at row 1”. I understand MySql expects dates in YYYY-MM-DD. Could anyone help with converting the date.
I have entered data and dates in the format of dd/mm/yyyy via the DbFore software and they display as dd/mm/yyyy and also display in the VB program in the same format in a VB DateTimePicker control. But when I attempt to enter a date through the VB program and the same DTP back to MySql table it gives me the error of: "Incorrect date value 19/06/1962 for column 'DateOfBirth' at row 1”. I understand MySql expects dates in YYYY-MM-DD. Could anyone help with converting the date.