title: How to get value from DatePicker
body: <p>I'm trying to work with datepicker from jquery, but I don't know, how to get a value from it.</p>
  
  <p>I'm using this code for datepicker view:</p>
  
  <pre><code>JQ.DatePicker = Em.View.extend(JQ.Widget, {
   uiType: 'datepicker',
   uiOptions: ['disabled', 'altField', 'altFormat', 'appendText', 'autoSize', 'buttonImage', 'buttonImageOnly', 'buttonText', 'calculateWeek', 'changeMonth', 'changeYear', 'closeText', 'constrainInput', 'currentText', 'dateFormat', 'dayNames', 'dayNamesMin', 'dayNamesShort', 'defaultDate', 'duration', 'firstDay', 'gotoCurrent', 'hideIfNoPrevNext', 'isRTL', 'maxDate', 'minDate', 'monthNames', 'monthNamesShort', 'navigationAsDateFormat', 'nextText', 'numberOfMonths', 'prevText', 'selectOtherMonths', 'shortYearCutoff', 'showAnim', 'showButtonPanel', 'showCurrentAtPos', 'showMonthAfterYear', 'showOn', 'showOptions', 'showOtherMonths', 'showWeek', 'stepMonths', 'weekHeader', 'yearRange', 'yearSuffix'],
   uiEvents: ['create', 'beforeShow', 'beforeShowDay', 'onChangeMonthYear', 'onClose', 'onSelect'],
   tagName: 'input',
   type: "text",
   attributeBindings: ['type', 'value']
  });
  </code></pre>
  
  <p>And my extended view:</p>
  
  <pre><code>App.DatePicker = JQ.DatePicker.extend({
        dateFormat: 'yy-mm-dd',
        classNames: ['form-control'],
        onSelect: function(dateText, inst) {
          this.value = dateText;
          this.set('value',dateText);
        }
      });
  </code></pre>
  
  <p>at html page I added:</p>
  
  <pre><code>{{#view App.DatePicker valueBinding="date"}}{{/view}}
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>App.MainController = Ember.ArrayController.extend({
      templateName: "main",
      date: null,
  
      saveDate: function(value){
          console.log("saveDate");
          this.date = value;
      },  
  
      showData: function(){
          alert(this.date);
      },
  
  });
  </code></pre>
  
  <p>I tested some other options in {{view App.DatePicker }}, but I don't understand how these view and controller work. Can somebody help me with this code or send me some link to a nice guide concerning this topic?</p>