date - Sql Datetimepicker format error -
kmt.parameters.addwithvalue("@car_date", datetimepicker1.text);
car_date
date
type column , it's format yy-mm-dd
but datetimepicker
format dd.mm.yy
how can fix this?
assign datetimepicker.value.date
parameter - not .text
string!
kmt.parameters.addwithvalue("@car_date", datetimepicker1.value.date);
the date
sql server (assuming have sql server) has no format - it's 8-byte binary data.
Comments
Post a Comment