Format date and times.