Date Time C# Tutorial

using System;
public class MainClass{
    public static void Main(){
        DayOfWeek thisDay = DayOfWeek.Monday;
        string[] formatStrings = {"G", "F", "D", "X"};
        
        foreach (string formatString in formatStrings)
           Console.WriteLine(thisDay.ToString(formatString));
    }
}