Behseini Behseini - 1 month ago 18
C# Question

Issue on Getting Date Name of Day, Month, Date and Year

Can you please let me know How Can I generate/get a date in this format

Tuesday September 27, 2016


TheDate = new DateTime(?????),


Try this:

DateTime thisDate1= new DateTime(2016, 10, 27);
Console.WriteLine($"{thisDate1.ToString("MMMM dd, yyyy")}");

Used sample from here