Changed date functions to have zero padding (e.g. 06 rather than 6)