*-- Return current UTC (system) datetime Function GetUTCTime Declare GetSystemTime in win32api String@ systemtimebuffer Local dt, dtret dt=replicate(chr(0),16) GetSystemTime(@dt) *-- vfp6 specific datetime dtret=Datetime( Bitlshift(asc(Substr(dt,2,1)),8) + asc(substr(dt,1,1)), ; Bitlshift(asc(Substr(dt,4,1)),8) + asc(substr(dt,3,1)), ; Bitlshift(asc(Substr(dt,8,1)),8) + asc(substr(dt,7,1)), ; Bitlshift(asc(Substr(dt,10,1)),8) + asc(substr(dt,9,1)), ; Bitlshift(asc(Substr(dt,12,1)),8) + asc(substr(dt,11,1)), ; Bitlshift(asc(Substr(dt,14,1)),8) + asc(substr(dt,13,1))) Return dtret EndFuncIf you need to edit/display this information in Local (user) time, you can use the diference between datetimes: