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 257 views
1 answer 272 views
1 answer 270 views
1 answer 317 views
1 answer 193 views
1 answer 190 views
...