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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -