Formatting date in the new view and in show view