title: Month-year to dd/mm/yyyy convertion issue?
body: <p>When i select a date from my date-picker i made it to display in month-year format which looks like <strong>july 2014</strong> . </p>
  
  <p>Well i must need to convert this format to dd/mm/yyyy or whatever it may be but when i pass in <strong>new Date()</strong> it should be valid . </p>
  
  <p><em>My date-picker binding code for getting month year</em></p>
  
  <pre><code>ko.bindingHandlers.enddate = {
  
          init: function (element, valueAccessor) {
              var value = ko.utils.unwrapObservable(valueAccessor());
  
              if (value &amp;&amp; typeof value === 'object') {
                  $(element).datepicker(value);
              }
              else {
                  $(element).datepicker({
                      changeMonth: true,
                      changeYear: true,
                      dateFormat: 'MM yy',
  
                      onClose: function (dateText, inst) {
  
                          var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
                          var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
                          $(this).datepicker('setDate', new Date(year, month, 1));
                      }
  
                  })
              }
          }
      };
  </code></pre>
  
  <p>Let me justify things i am doing  here . i need the Date should be in  <code>Date()</code> understandable format because i will pass my selected date(which will be in observable) when i select from customised Datepicker .</p>
  
  <p><strong>Senario 1:</strong> var dateformat= new Date("dd/mm/yyy") --> which will work fine </p>
  
  <p><strong>Senario 2:</strong> var dateformat= new Date("july 2014") --> Invalid date so i intend to convert to dd/mm/yyyy and do further </p>