FILETIME to DateTime


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //from System.Runtime.InteropServices.ComTypes.FILETIME to System.DateTime
  2.  
  3. FILETIME ft = new FILETIME();
  4.  
  5. long hFT2 = (((long)ft.dwHighDateTime) << 32) + ft.dwLowDateTime;
  6.  
  7. DateTime dte = DateTime.FromFileTime(hFT2);

URL: http://windows-tech.info/1/dc66674e398c3e66.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.