Added formatting to datetime.