How to remove time portion of date in C# in DateTime object only?

Ask a question+

I need to remove the time portion of date time or probably have the date in the following format in object form, not in the form of string.

06/26/2009 00:00:00:000

I can not use any string conversion methods as I need the date in object form.

I tried first converting the DateTime to a string, remove the time-specific date from it, but it adds 12:00:00 AM as soon as I convert it back to DateTime object back again.

add comment

0 Answer

Your Answer