Return to Snippet

Revision: 26185
at April 20, 2010 01:30 by liupengf12


Initial Code
//from System.Runtime.InteropServices.ComTypes.FILETIME to System.DateTime

FILETIME ft = new FILETIME();

long hFT2 = (((long)ft.dwHighDateTime) << 32) + ft.dwLowDateTime;

DateTime dte = DateTime.FromFileTime(hFT2);

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

Initial Description

                                

Initial Title
FILETIME to DateTime

Initial Tags

                                

Initial Language
C#