AngularJS Input Date Validation Transformation
Below is an example of using Input with date validation and transformation. When you use date it’s mandatory to pass date object to the model otherwise Angular will throw exception. If invalid date object pass i.e. when getTime() method called and it returns NaN Angular rendered as empty string. Default time zone is always browser time zone.
- Example: AngularJSDataAndValiation.html
- Test this code in Plunker here