title: date and time concatenate the values in react Js
body: <p>how to concatenate the date and time value in react js. for date and time picking i am using material UI datepicker and timepicker for selecting the date and time this my example code.</p>
  
  <pre><code>selectDate(event, date) {
    this.setState({
      updatedDate: moment(date).format('DD-MM-YYYY'),
    });
  }
  
  selectTime(event, time) {
    this.setState({
      startime: moment(time).format('HH:mm')
    });
  }
  </code></pre>
  
  <p>i want to convert to <code>YYYY-MM-DDThh:mm:ss</code> this format</p>