/*
SystemTimeToDateTime example
The following code retrieves the current date and time using the Windows GetLocalTime API call, and converts this value to a TDateTime value.
*/
TDateTime __fastcall GetCurrentDateTime()
{
  SYSTEMTIME SystemTime;
  GetLocalTime(&SystemTime);
  return SystemTimeToDateTime(SystemTime);
} 
