Format date value in material design to remove time -
i have following input on form: <md-input-container class="md-block" flex> <label>install date</label> <input type="text" date="yyyy-mm-dd" ng-model="selectedcompanydetail.installdate" disabled> </md-input-container> as can tell, want date displayed format yyyy-mm-dd . however, getting this: 1993-01-01t00:00:00 . it looks correct if this: <md-input-container class="md-block" flex> <label>install date</label> <input type="text" ng-model="selectedcompanydetail.installdate | date:'yyyy-mm-dd':'utc'" disabled> </md-input-container> but, error in developer tools: angular.js:13307 error: [ngmodel:nonassign] http://errors.angularjs.org/1.5.0-rc.2/ngmodel/nonassign?p0=selectedcompanydetail.installdate%20%7cnanate%3a 'yyyy-mm-dd'%3a'utc'&p1=%3cinput%20type%3d%22text%22%20date%3d%22yyyy-mm-dd%22%20