Link to home
Start Free TrialLog in
Avatar of Pau Lo
Pau Lo

asked on

converting seconds since a date into date/time

we have an old legacy erp system which stores audit event logs in a format of seconds since 01/01/1990. I am trying to find a way to covert the values into something more useful, e.g. a date & time.  e.g. 926060571 is one value, and is supposedly the number of seconds since 01/01/1990 to when that event occurred in the system, but I could do with some assistance on a formula to convert it to an actual date/time.
ASKER CERTIFIED SOLUTION
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can use VBA to create a function:

Seconds = 926060571 
TrueDate = DateAdd("s", Seconds, #1/1/1990#)

TrueDate -> 2019-05-07 07:02:51 

Open in new window