C# Program to get Day/Month/Year

Rajnilari2015
Posted by Rajnilari2015 under C# category on | Points: 40 | Views : 451
using System;

namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
var dayMonthYear = DateTime.Now.ToString("dd/MM/yyyy");
Console.WriteLine("Day/Month/Year : {0}",dayMonthYear);
Console.ReadKey();
}
}
}


Result
------

Day/Month/Year : 18/08/2016

Comments or Responses

Login to post response