format date in log