File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,11 @@ <h1>Date</h1>
210210 < h3 > What?</ h3 >
211211 < p > Calendar picker with ng-model integration</ p >
212212 < div class ="well ">
213- < p > < input value ="Click Here for Datepicker " ng-model ="date " ui-date > </ p >
213+ < ng-form name ="dateForm ">
214+ < p > < input name ="dateField " value ="Click Here for Datepicker " ng-model ="date " ui-date > </ p >
215+ </ ng-form >
214216 < p > Selected Date: {{ date }}</ p >
215- < p > Formatted Date: {{ date.toLocaleDateString() }}</ p >
217+ < p > Formatted Date: {{ date | date: 'mediumDate' }}</ p >
216218 < p > Selected Month: {{ date.getMonth() }}</ p >
217219 < div ng-model ="date " ui-date > </ div >
218220 </ div >
@@ -225,7 +227,7 @@ <h3>How?</h3>
225227< pre class ="prettyprint linenums " ng-non-bindable >
226228<input ng-model="date" ui-date>
227229Selected Date: {{ date }}
228- Formatted Date: {{ date.toLocaleDateString() }}
230+ Formatted Date: {{ date | date: 'mediumDate' }}
229231Selected Month: {{ date.getMonth() }}
230232<div ng-model="date" ui-date></div>
231233</ pre >
You can’t perform that action at this time.
0 commit comments