added leftPad to string and used it in getTime and getDate