Change date format to include leading zeros

A leading zero now appears if the second, minute, or hour in the time is a single digit.