I want to save date through textbox to a SQL Server database using parameters as below:
SqlParameter p15 = new SqlParameter
{
SqlDbType = SqlDbType.Date,
ParameterName = "prj_start_date",
SqlValue = txtStartDate.Text
};
and the following error appear:
Conversion failed when converting the nvarchar value '12-12-2015' to data type int.
I have try use casting using convert but this was not worked
In addition textmode= date doesn't work in IE
Thanks in advance