set up date directive