Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Why Passing simple DateTime parameter from C# To Sql Store Procedure (without Converting in String Format) not always give desired Result..?

It gives exact result if we pass DataTime in fallowing format var sqlDateFrom = dt_From.Date.ToString("yyyy-MM-dd HH:mm:ss") But it gives Diffrent Ouptput when we pass DateTime without convrting it into string.

user-image
Question added by Javed Ahmad , Senior Developer , HCL Technologies Ltd
Date Posted: 2017/05/05
Muhammad Jawad
by Muhammad Jawad , Deputy Manager (MIS) , AL-NOOR GROUP MDF BOARD

Yeah it has the accurate value thats why we use.

More Questions Like This