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')};  

plnkr


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -