Specify Kind DateTime : Date Time : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Date Time »

 

Specify Kind DateTime








    
 

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);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Date Time