replaced OfferController.formatDate() with date directive