Search code examples
c#datetimedate-format

Remove timestamp from date in C#?


I have a date like this: 2011-03-29 00:00:00.000

I want to remove the timestamp from that, is that possible?

Thanks :-)


Solution

  • Instance of DateTime class has ToShortDateString method that displays Date only