public class DateTimeProgram
public static void Main()
DateTime CurrentDT= DateTime.Now;
Console.WriteLine(CurrentDT);
Console.WriteLine(CurrentDT.ToString("d"));
Console.WriteLine(CurrentDT.ToString("dd/MM/yyyy"));
Console.WriteLine(CurrentDT.ToString("hh:mm:ss tt"));