date-time-piker directive working