In a SQL-database is a field with time and date, and I want to read it in FWH.
You can read it in C with the FromFileTime() function.
Can I convert it to FWH?
This is an example in C that convert the value.
- Code: Select all Expand view RUN
- #include "stdafx.h"
using namespace System;
using namespace System::Globalization;
int _tmain(int argc, _TCHAR* argv[])
{
System::DateTime fEventTime = System::DateTime::FromFileTime( 131032008000002432 );
Console::Write("Date & Time = {0:MM/dd/yyyy hh:mm:ss tt}\n",fEventTime );
getchar();
return 0;
}