Try to convert the string to a datetime with System.Convert.ToDateTime(strValue) before passing it as a parameter to the SQLCommand.