Print Current Date - CSharp System

CSharp examples for System:DateTime Calculate

Description

Print Current Date

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from w  w w.  ja v  a 2 s  .c o m

public class Main{
        public static void PrintData()
        {
            Console.WriteLine(DateTime.Now.ToShortDateString());
        }
}

Related Tutorials