I know two ways to format a date in C#
:
data.ToShortDateString
which gives me a return like this: 07/21/2017
data.ToLongDateString
that gives me a return like this: Friday, July 21, 2017
I want a format similar to ToLongDateString
, but without the day of the week, eg:
July 21, 2017.
How to do it?