How to Convert Datetime to DD/MM/YYYY Format in C#/CSharp

Sample code is given below.  Make sure MM is in capital letters.

using System;



namespace Hello_World
{

    class Program
    {
        static void Main(string[] args)
        {
            DateTime today = DateTime.Now;

            string dt = today.ToString("dd/MM/yyyy");

            Console.WriteLine(dt);
        }
    }
}
;