string mydate="10/04/2009";
datetime dt=convert.todatetime(mydate) ;
it will work well .
insert into mydatetime(mydatetime)values('"+ string.Format("{0:yyyy/MM/dd}",dt) +"')
it will work well .
No comments:
Post a Comment