I am trying to insert a date into an SQl dbase and I can't get it to work.
if I use:
SQLupdate="UPDATE news SET ondate='"& news_ondate &"' WHERE id="&nid&""
I get the error:
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
if I remove the quotes around the date it inserts into the databse but always as 01/01/1900
the date is being passed from a from so it is just a text field.
please someone help me!
if I use:
SQLupdate="UPDATE news SET ondate='"& news_ondate &"' WHERE id="&nid&""
I get the error:
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
if I remove the quotes around the date it inserts into the databse but always as 01/01/1900
the date is being passed from a from so it is just a text field.
please someone help me!