title: Convert decimal time to hh:mm format with javascript
body: <p>I have a script which returns a decimal value to represent time. I need to convert the decimal time value to hh:mm (i.e: 90 minutes should be repreesnted as 1:30. Attached is my current script.</p>
  
  <pre><code>function Convert() {
      var minutes = document.getElementById("sum").value;
      var hours = minutes / 60;
      document.getElementById('total').value = hours;
      document.getElementById('sum').value = minutes;
  
      var minutes = document.getElementById("sum_1").value;
      var hours = minutes / 60;
      document.getElementById('total_1').value = hours;
      document.getElementById('sum_1').value = minutes;
  }
  </code></pre>