Ui summary table - format dates with one method for session and test info

I want to pass time as long and time as String representation as one object, actually we can just make them fields of TestInfoDto, but as they represents same date I assumed that it would be clearer to hold it in one place.