title: Transform first item in array to timestamp
body: <p>I have the following problem in the example below</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>***/*For this object */***
  data:{
    "date": "2021-01-25 07:17:00",,
    "open": 0.0096367,
    "low": 0.0096367,
    "high": 0.00963707,
    "close": 0.00963707,
    "volume": 0
  }
  
  /*I use this code */
  
    const keys = ["date", "open", "high", "low", "close", "volume"],
              results = {
                ohlcv: Object.entries(data).map(([volume, open]) =&gt; [
                  ...keys.map((k) =&gt; open[k])
                ]),
              };
              
  /*To turn it to this array*/
  
  ohlcv: [
            [
              "2021-01-25 07:17:00",
              0.00963206,
              0.00963243,
              0.00963206,
              0.00963206,
              0,
            ],
          ]
            
           </code></pre>
  </div>
  </div>
  
  So far so good but,
  how to change the date in the array to timestamp with Date.parse() function?</p>
  <p>Thanks in advance!</p>