       if newValue != _date {
         _date = newValue
         renderDate()
-        if let dateDelegate = delegate as? DatePickerTextFieldDelegate {
-          dateDelegate.datePickerDateDidChange(self)
-        }
+        sendValueChanged()
       }
     }
   }

    }
  }
  
  // Actually pop up a picker, then update date from picked value.
  public func pop() {
    if viewController == nil {
      return;
    }
    

      forTextField.date = newDate
    }
    
    datePickerPop.pick(popupContainer, initDate: self.date, dataChanged: dataChangedCallback)
    
  }
  
