title: MomentJS remove Time from Date Object (javascript)
body: <p>I am using Moment.js to create a new date object and pushing to an array using the following code.</p>
  
  <pre><code>array.push(moment(object[column]).toDate());
  </code></pre>
  
  <p>The value of 'object[column]' is 2015-01-02 before creating the date object.</p>
  
  <p>This array is used to generate a Google Chart using their API</p>
  
  <p>The date becomes the following.</p>
  
  <pre><code>Fri Jan 02 2015 00:00:00 GMT-0500 (Eastern Standard Time)
  </code></pre>
  
  <p>I would like to parse it, to use it in the X Axis. I have tried the following but the console starts yelling.</p>
  
  <pre><code>array.push(moment(object[column]).toDate().format('MM/DD/YYYY'));
  Uncaught TypeError: moment(...).toDate(...).format is not a function
  </code></pre>
  
  <p>I have tried this and the dates are off by months!</p>
  
  <pre><code>array.push(moment(object[column], 'MM/DD/YYYY').toDate());
  Messed up data -"Wed Aug 15 1 00:00:00 GMT-0400 (Eastern Daylight Time),9,8,7,6,5,4,3,2,1
  </code></pre>
  
  <p><strong>The outcome I am looking for is 1/1/15</strong>
   - Am I missing something? Thank you.</p>