c# - SqlCeUpdatableRecord setDatetime convert '2079' -
in sql database have smalldatetime record '1.1.2079'. want insert record sql compact datetime record. i'm using sqlceupdatablerecord
, setdatetime
rec.setdatetime(i, convert.todatetime(sqldatareader[columnname].tostring()));
but in compact database record '1.1.1979'. don't why. can please tell me how '1.1.2079' in compact version also.
found solution:
rec.setdatetime(i, convert.todatetime(sqldatareader[columnname]));
there no need convert .tostring()
value sqldatareader
.
Comments
Post a Comment