End Google Ads 201810 - BS.net 01 --> I am running into a peculiar problem. I want to extract only date part from DateTime and pass the Date as DateTime datatype to stored procedure. I tried with the following code:

DateTime datetime = DateTime.Now.Date; Console.WriteLine("Date is : " + datetime);
This is always returns with date and time as 4/27/2013 12:00:00 AM. I want only date, no time and should pass this as Date Datatype.

Even though I tried with lots of examples, I am able to do it if I convert to string which is not possible.

Is there any way which I can achieve this? Am I doing something wrong here?