format date for display in detail view