Correct date is not displaying in ionicview for input type date?


#1

When getting date from date input in ionic in alert it shown correctly but in view it shows like below .

in alertview Fri Feb 21 2016

in view 2016-02-21T18:30:00:000Z.

please help me


#2

You need to post a piece of your code. This could happen when converting back and forth from Json, but without seeing some code, it’s difficult to tell what wrong exactly.