Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to bind date filed using angularjs with the below json. but its not showing the date and its showing the date format.
My Json:

HTML
{"PaidOn":"2014-02-15T00:00:00+05:30"}


Html

HTML
<input type="date"  ng-model="PaidOn" />


Help requried on this.
Posted
Updated 13-Nov-14 0:06am
v3
Comments
Nathan Minier 13-Nov-14 7:12am    
You need to parse the JSON. Look at the docs:
https://docs.angularjs.org/api/ng/input/input%5Bdate%5D
@Kathukkutti 14-Nov-14 9:06am    
Thanks for your comment. It's done :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900