How to get the today date as mmm dd yyyy string in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        string dt = DateTime.Today.ToString("MMM dd, yyyy");

        Console.Write(dt);
    }
}



/*
run:

Aug 07, 2023

*/

 



answered Aug 7, 2023 by avibootz

Related questions

1 answer 162 views
1 answer 158 views
1 answer 163 views
1 answer 210 views
1 answer 84 views
1 answer 83 views
...