angular- $interval from user value
<p>I am taking date and time from the user input and</p>

<pre><code>&lt;input type="datetime-local" ng-model= "datetime" name="datetime" min="2016-01-01T00:00:00" max="2116-12-31T00:00:00" class="b" required/&gt;
</code></pre>

<p>want to appear it in this div <code>&lt;div ng-bind="x.todoTime| date : 'medium'" class="bb"&gt;&lt;/div&gt;</code>                                                               but with the interval of 1000.How should I do it?</p>

<p>Js code:-</p>

<pre><code>var app =angular.module('toDolist', []);
app.controller("toDoCtrl",function($scope, $interval) { 
$scope.todoWork = [];

    $scope.todoAdd = function() {      
$scope.todoWork.push({todoText:$scope.task,todoDesc:$scope.description,todoTime:$scope.datetime,todoPriority:$scope.priority,done:false});
            $scope.task ='';
            $scope.description ='';
            $scope.datetime ='';
            $scope.priority ='';
        };
    $interval(function(){
        $scope.datetime;;
      },1000);
</code></pre>