Well, it’s only a log file - that would be good enough for me.
There are examples of formatting DateTime states to string here in this Tutorials & Example post