Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body data-ng-app="myModule">    
  <div ng-controller="MainCtrl">
    <input type="date" ng-model="dateString"/>     
    <br/>{{ dateString }}
     <br/><input type="date" ng-model="date1"/>    
    <br/>{{ date1 }}
</div>
</body>
</html>
 
angular.module("myModule",[])
.controller("MainCtrl", MainCtrl);
function MainCtrl($scope) {
   $scope.dateString = new Date("2015-08-11T00:00:00");
    $scope.date1 = new Date("2015-08-11");
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers