OK, still working on the Event Log.
I have now acquired:
lpBuffer.TimeGenerated
This is in seconds since 1970...
So I'm thinking along these lines but it is not working...
I'd like to return it in a date format readable
------------------
Scott
I have now acquired:
lpBuffer.TimeGenerated
This is in seconds since 1970...
So I'm thinking along these lines but it is not working...

I'd like to return it in a date format readable

Code:
Function ReturnDate(inTime As Dword) As String Local st As SYSTEMTIME Local tDay As Asciiz * 64 Local tTime As Asciiz * 64 VariantTimeToSystemTime inTime,st ' -- Create a date string using the local settings GetDateFormat %LOCALE_USER_DEFAULT, %NULL, st, "MMM dd',' yyyy", tDay, 64 ' -- Create a time string using the local settings GetTimeFormat %LOCALE_USER_DEFAULT, %TIME_NOSECONDS, st, "hh:mm tt", tTime, 64 Function = tDay + " " + tTime End Function
------------------
Scott
Comment