I tried to update "date" filed in my table form my Datetimepicker from a Windows form. The SQL is :
strSQL = "UPDATE Employee SET Dob = Datetimepicker1.value WHERE EmployeeID = 10001
However , the DOB field is alwasys updated as 01/01/1900
I tried get many get answer from some reference book ,but most of example are in updating String and Integer . I really need someone who knows the ways to update "date" field. Thank you .
strSQL = "UPDATE Employee SET Dob = Datetimepicker1.value WHERE EmployeeID = 10001
However , the DOB field is alwasys updated as 01/01/1900
I tried get many get answer from some reference book ,but most of example are in updating String and Integer . I really need someone who knows the ways to update "date" field. Thank you .