title: How to set Date of an existing moment.js object
body: <p>Let's say I have an existing moment object:</p>
  
  <pre><code>var m = moment(); // this will default to now
  </code></pre>
  
  <p>and want to update it with a new Date object, but WITHOUT REPLACING the entire object. E.g. this is NOT an acceptable solution for me:</p>
  
  <pre><code>m = moment(new Date());
  </code></pre>
  
  <p>The only solution I can find in there docs, is using set method:</p>
  
  <pre><code>m.set({'year': 2013, 'month': 3});
  </code></pre>
  
  <p>but in this way we'll need to split our existing Date object into peaces like this:</p>
  
  <pre><code>var myDate = new Date();
  var newDate = moment(myDate);
  
  var splittedDate = {
      year: newDate.get('year'),
      month: newDate.get('month'),
      date: newDate.get('date'),
      hour: newDate.get('hour'),
      minute: newDate.get('minute'),
      second: newDate.get('second'),
      millisecond: newDate.get('millisecond')
  };
  
  m.set(splittedDate);
  </code></pre>
  
  <p>But this looks ugly to me. Maybe someone can suggest a better solution?</p>