Answers for "create date c# method"

C#
6

c# date

using System;
class Test {
   static void Main() {
      //print current datetime
      Console.WriteLine (DateTime.Now.ToString());
      //make a custom datetime
      DateTime dt = new DateTime(2018, 7, 24);
      Console.WriteLine (dt.ToString());
   }
}
Posted by: Guest on June-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language