I want to use a standard date format that displays the date, month and year in the standard regional settings of the PC. However, I could only find "D", which lists the day along with "Date-month-year." Is there a way to remove the day from it or in some other way to get the desired result?
DateTime date1 = new DateTime(2008, 4, 10); Console.WriteLine(date1.ToString("D", CultureInfo.CreateSpecificCulture("en-US")));
Note. I do not want to use a custom format (d MMMM yyyy), since I want to keep the regional order settings.
source share