Date range picker directive working