I have certain dates in my DB.
When received in C# Code, they come with values as 2012-02-14T06:02:33, 2014-09-12T03:21:22 and similar.
I want to truncate the time component to 00:00:00, ex: 2012-02-14T00:00:00.
How should I proceed with it?
Tried DateTime.TryPareExact
with few formats but wasn't able to get the desired results.
My main aim is to just truncate the time part in the dates to 00:00:00.
Experts please help.