title: Using React-Moment, (moment.js) How do I get date format: Mon Apr 19 1976 09:59:00 from format 2017-08-07 08:42:08?
body: <p>I'm trying to convert the date format <strong><code>2017-08-07 08:42:08</code></strong> to format <strong><code>Mon Apr 19 1976 0:59:00</code></strong> using <code>react-moment</code> library.</p>
  
  <p>I went through the docs at <code>[https://www.npmjs.com/package/react-moment][1]</code> and tried similar examples, but nothing fits my need exactly.</p>
  
  <p>I can do:</p>
  
  <pre><code>&lt;Moment fromNow&gt;{datetime}&lt;/Moment&gt;
  </code></pre>
  
  <p>yields format:</p>
  
  <blockquote>
    <p>in 10 days</p>
  </blockquote>
  
  <p>But</p>
  
  <pre><code>&lt;Moment unix&gt;{datetime}&lt;/Moment&gt;
  </code></pre>
  
  <p>yields</p>
  
  <blockquote>
    <p>Invalid date</p>
  </blockquote>
  
  <pre><code>&lt;Moment parse="YYYY-MM-DD HH:mm:ss"&gt;
      {datetime}
  &lt;/Moment&gt;
  </code></pre>
  
  <p>yields: <code>Mon Aug 07 2017 08:47:47 GMT+0545</code>. I don't it without the timezone value at the end. What's the correct parameter for this date format from this input?</p>