CSharp examples for Language Basics:Date Time
Output today's date in long format
using System;// www . ja va 2 s . c o m using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { // Today's date DateTime today = DateTime.Today; // Output Console.WriteLine("Today is " + today.ToLongDateString()); } }