I have the calendar and it generates a data that shows me this way:
/Date(1513828800000)/
in the view I am getting the date from:
<input type="date" class="form-control" id="txtvalor" ng-model="datos.Fecha" placeholder="Fecha" />
try this way
<td scope="row">{{datos.Fecha | date:'dd-MM-yyyy'}}</td>
not like this:
<td scope="row">{{ datos.Fecha | date : format : timezone}}</td>
Do you know another way?
if you have others try with the list of numbers 1513828800000 and it gives you /Date(1513828800000)/ make a substr:
They will always reach that amount of numbers "they are always filled with 0 example: 03/13/2017 "
angularJS's 'date' filter parses data of type 'Long'. Therefore, make sure that:
The data obtained from 'data.Date' is a date value in milliseconds (Long), for example: 1288323623006 (Oct 28, 2010 10:40:23 PM). That is not indefinite or null.
In the second way you tried you should have the 'format' and 'timezone' variables defined in the scope. For example:
As an example, I leave you the following (obtained from docs.angularjs.org ):
You can guide yourself with the official angularJS documentation: filterDate .
UPDATED:
Apparently it is a cast made by Microsoft JSON, a solution could be this:
I don't know if it works yet but if someone has the same problem I solved it as follows: