SqlParameter Datetime SqlValue difference with Value

ساخت وبلاگ

Vote count: 0

I have a datetime value to pass into SqlParameter. DateTime object value

However when pass to myCmd.Parameters.Add("@TrxDate", adt_TrxDate); SqlParameter SqlValue & Value property is difference value

Found that it add a day when executing query. I found this issue in profiler and finally find out SqlParameter SqlValue & Value property is difference value. Why it is happen and any idea?

asked 2 mins ago

- - , .

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 341 تاريخ : جمعه 30 بهمن 1394 ساعت: 8:14