I have been getting this error while trying to use DateTimePicker to insert the current date and time into a table. I tried using Date and datetime datatypes with sqlserver.