title: Convert Time to Minutes in javascript
body: <p>I need to convert the time in minutes . My time format is like this</p>
  
  <pre><code>21:30
  </code></pre>
  
  <p>I need to convert this time in minutes.</p>
  
  <p>I tried with the following code:</p>
  
  <pre><code> function TimetoMintues(hour,mint){
          var time = parseInt( hour * 60 );
          time = mint + time;
          return time;
      }
  </code></pre>
  
  <p>Thanks In advance</p>