sql server - .net SQL DateTime returning wrong value -
if use either
select convert(datetime, deldate, 113), deldate
it returns datetime:
21/01/2015 23:00:00
which correct, stored in db table datetime. when inserting db via datatable
(row.item("deldate").tostring())
it returns
22/01/2015 00:00:00
i tried
dim deldate datetime deldate = convert.todatetime(row.item("crmp_deliverydate").tostring())
and still returns 22/01/2015 00:00:00
can out, actual datetime. thanks
Comments
Post a Comment