> Is precision lost when converting to string?
The string you are generating has the time to the nearest second: DateTime is more accurate so yes, precision is lost.
To understand what's happening, you could try formatting with fractions of seconds (e.g. LastWriteTime.ToString("yyyy-MM-dd HH:mm:ss.fffffff").
|