Answers for "c# creation date"

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
0

C# fileinfo creation date

DateTime creation = File.GetCreationTime(@"C:test.txt");
DateTime modification = File.GetLastWriteTime(@"C:test.txt");
Posted by: Guest on January-28-2021

C# Answers by Framework

Browse Popular Code Answers by Language