@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The FileTimeToDosDateTime API !!!!C# Signature: [DllImport("kernel32.dll")] static extern bool FileTimeToDosDateTime([In] ref FILETIME lpFileTime, out ushort lpFatDate, out ushort lpFatTime); !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: public static int GetDosTime(DateTime time) { var fileTime = BitConverter.GetBytes(time.ToFileTime()); var ft = new FILETIME { dwLowDateTime = BitConverter.ToInt32(fileTime, 0), dwHighDateTime = BitConverter.ToInt32(fileTime, 4) }; ushort dosDate, dosTime; FileTimeToDosDateTime(ref ft, out dosDate, out dosTime); var res = Convert.ToInt32(dosTime) + (Convert.ToInt32(dosDate) << 16); return res; } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: FileTimeToDosDateTime@msdn on MSDN
Edit kernel32.FileTime...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.