I have a input field of type "datetime-local" . When I am assigning to it the current TimeStamp, the input filed is showing the seconds and milliseconds also. What is the simplest way to show the time only till minutes ?
  <body ng-controller="MainCtrl">
    <input type="datetime-local" class="form-control" id="DateTime" ng-model="formInfo.dateTime">  
  </body>
The app.js is :
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
   $scope.formInfo = {};
   $scope.formInfo.dateTime = new Date();
});
Here is the Plunker
 
     
    