How to extract the abbreviated weekday name from specific date in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        DateTime adate = new DateTime(2020, 8, 24);
        
        Console.WriteLine(adate.ToString("ddd"));
    }
}



/*
run:

Mon

*/

 



answered Oct 8, 2020 by avibootz

Related questions

...