code: function(date, preventOnSelect)
          {
              if (hasMoment && moment.isMoment(date)) {
                  this.setDate(date.toDate(), preventOnSelect);
              }
          }
docs: set the current selection from a Moment.js object (if available)