I am trying to save a date from a VB 6.0 form to a SQL server database. The datatype for the form is Date and the datatype for the Database is datetime. When i try to save the date to the database it becomes 1/1/1900. But the appropriate variable in the sql statement is showing the correct date but when it is entered into the table it gets changed. But in reverse if i enter the dat into the database then it displays correctly on the form. Am i doing something wrong with the datatypes?
Thanks
Thanks