format date fixed on view page