DateTimeKind.Utc : DateTimeKind « System « C# / C Sharp by API






DateTimeKind.Utc

 

using System;
public class MainClass {
    public static void Main() {

        DateTime d = new DateTime(2000, 12, 12);
        DateTime utc = DateTime.SpecifyKind(d, DateTimeKind.Utc);
        Console.WriteLine(utc);
    }
}

   
  








Related examples in the same category