Pad dates with leading zeros in log files.