title: how convert date format in javascript reactjs
body: <pre><code>&lt;b&gt;Select Datetime&lt;/b&gt;&lt;br/&gt;
  &lt;DateTimeField onChange={this.clockevent} format={"x"}/&gt;   
  
  clockevent=(newDate)=&gt;{
      var dateVal ="/Date("+newDate+")/";
      var date = new Date(parseFloat(dateVal.substr(6)));
  
  
      console.log(
      date.getFullYear() + " " +
      (date.getMonth() + 1) + "/" +
      date.getDate() + "  " +
  
      date.getHours() + ":" +
      date.getMinutes() + ":" +
      date.getSeconds() );
  }
  </code></pre>
  
  <p>result :</p>
  
  <blockquote>
    <p>2018/2/1  14:16:0</p>
  </blockquote>
  
  <p>i want the result add day,month and ss '  format (<strong>DD MM ss</strong>) i want to this format =  </p>
  
  <blockquote>
    <p>2018/02/01  14:16:00</p>
  </blockquote>