Pad date and time parts with leading zeros where necessary