change date format and pad signle numbers