Behseini Behseini - 1 year ago 103
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(?????),

Answer Source

Try this:

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

Used sample from here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download