title: Convert into separate date and time into one string with format moment js
body: <p>I am using <a href="https://momentjs.com/" rel="nofollow noreferrer">moment js</a> and new in this. So right now I am getting separated time and date from html to javascript controller so I want to convert into one string with format in moment js.</p>
  
  <pre><code>console.log($scope.timeTo);
  console.log($scope.dateTO);
  </code></pre>
  
  <p>Console OutPut:</p>
  
  <pre><code>04:00
  23/05/2017
  </code></pre>
  
  <p>But I want to set time and date together  with momentjs.
  Desired format:</p>
  
  <pre><code>2017-05-23T04:00:00
  </code></pre>