ASP Calendar control returns Date type but I need Datetime to insert into SQL Server 2005
- by rafael
Hello,
I am using a ASP Calendar control to insert a datetime value into a field to be part of an insert to a SQL Server 2005 db table.
I get the following error when i submit the form to server and try to insert into table:
[ArgumentException: The version of SQL Server in use does not support datatype 'date'.]
Seems like Calendar control returns a Date type value. How could i make the Calendar control return a Datetime value instead?
I know now that SQL Server 2005 does not support Date type fields.