title: How to convert short dates to this format: DDD MMM DD YYYY GMT+0800 (X country standard time)?
body: <p>When I do <code>new Date()</code> I get:</p>
  
  <pre><code>Thu Dec 28 2017 10:17:58 GMT+0800 (台北標準時間)
  </code></pre>
  
  <p>If I apply <code>.valueOf()</code> to that date I  get:</p>
  
  <pre><code>1514427724039
  </code></pre>
  
  <p>Which is what I want.</p>
  
  <p>Now, I need to apply <code>.valueOf()</code> to a date like this: <code>2017/12/28</code>. I tried using <a href="https://moment.github.io/luxon/docs/manual/tour.html" rel="noreferrer">Luxon</a> to convert the date (since applying <code>.valueOf()</code> to YYYY/MM/DD doesn't produce a number):</p>
  
  <pre><code>DateTime.fromISO(startDate.replace(/\//g, '-')).toRFC2822()
  // =&gt; Thu, 28 Dec 2017 00:00:00 +0800
  </code></pre>
  
  <p>However, applying <code>valueOf()</code> that results returns the same string. Not a number like in the first example.</p>
  
  <p>What should I do so I can produce a numeric value from <code>YYYY/MM/DD</code>? Just I did with <code>DDD MMM DD YYYY GMT+0800 (X country standard time)</code>?</p>