add date formatting to view