abstract date formatting and add icon styling