apply date directive