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 -

CSS3 Transition to highlight new elements created in JQuery -