Directive to select date