w3resource logo


C# Sharp Programming Exercises

C# Sharp Exercises: Windows file time to an equivalent UTC time

Secondary Nav

C# Sharp DateTime : Exercise-23 with Solution

Write a C# Sharp Program to convert the specified Windows file time to an equivalent UTC time.

Expected Output :

6/2/1639 9:25:12 AM  

C# Sharp Code:

using System;
public class Example23
{
  public static void Main(String[] argv){  
    DateTime dt = DateTime.FromFileTimeUtc(12123123123123123);
    System.Console.WriteLine(dt);
  }
}

C# Sharp Practice online:

using System;
public class Example23
{
  public static void Main(String[] argv){  
    DateTime dt = DateTime.FromFileTimeUtc(12123123123123123);
    System.Console.WriteLine(dt);
  }
}

Improve this sample solution and post your code through Disqus.



Join our Question Answer community to learn and share your programming knowledge.

Help the community:

PHP: Loop

JavaScript: Delete duplicates in an array

Oracle: Round the number