Tutorial 11 – how to use input via a Datetime-local type in AngularJS

Datetime-local type in AngularJS

This sample will help you know about using input via Datetime-local type.




 <html>  
   <head>  
     <title>Angular JS Model</title>  
     <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>  
     <script>  
       angular.module('MyForm', [])  
           .controller('myController', ['$scope', function($scope) {  
          $scope.valuedatelocal = new Date();  
       }]);  
     </script>  
   </head>  
   <body ng-app="MyForm">  
           <br />  
            <input type="datetime-local" name="input" ng-model="valuedatelocal"  
               min="2014-01-01T00:00:00" max="2014-12-31T00:00:00" required /> <br />  </body>  
 </html>  


1 comment:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in ANGULAR JS, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on ANGULAR JS. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Nitesh Kumar
    MaxMunus
    E-mail: nitesh@maxmunus.com
    Skype id: nitesh_maxmunus
    Ph:(+91) 8553912023
    http://www.maxmunus.com/




    ReplyDelete

Popular Posts