format date and dashboard