html5 - How to populate a html 5 date input -
i have modal opens form data edited. populates correctly except date input. when put date in there saves , updates fine format issue? input field showing mm/dd/yy when modal opens. plunkr
<label style="margin-left:296px">date:</label> <input style="width:150px" ng-model="currentitem.changeorderdate" type="date" />
you should convert string date object before populating.
$scope.currentitem = {changeorderdate : new date('2014-08-27t07:41:43.803')};
Comments
Post a Comment