format date and time on PDF