desmondtan
Active member
- Joined
- Dec 24, 2002
- Messages
- 40
In VB.NET , 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 always updated as 01/01/1900
The databse I used in MSDE , the Dob field is smalldatetime .
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 always updated as 01/01/1900
The databse I used in MSDE , the Dob field is smalldatetime .
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 .