Formatting Duo Log Reports

Modified on Thu, Sep 7, 2023 at 4:13 PM

If you ever need to export a user's Duo logs in .csv format, it will give you the first column as date & time combined in this format: 

 

2023-06-01T13:38:27.889337+00:00


You can use the following formulas to convert this format into two separate cells for date and time (this assumes that the above cell is in A2:


For the date cell, use: =DATE(LEFT(A2,4),RIGHT(LEFT(A2,7),2),RIGHT(LEFT(A2,10),2))


For the time cell, use: =TIME(LEFT(RIGHT(A2,21),2),LEFT(RIGHT(A2,18),2),LEFT(RIGHT(A2,15),2))


Since the times are listed in the UTC time zone, you would need to convert them to the Eastern time zone.


During the summer months, Eastern is UTC-4 (fall/winter, we are UTC-5).  To subtract four hours from the time, add this to the end of the time formula: -(4/24)


e.g. =TIME(LEFT(RIGHT(A2,21),2),LEFT(RIGHT(A2,18),2),LEFT(RIGHT(A2,15),2))-(4/24)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article