fixed two digit formatting of timestamp and date functions