I get data from database with angularjs. In database it looks like "01.01.1970 18:00:00", but on page it diplayed like this: "/Date(25200000)/". How can I solve this problem?
C# method:
[HttpGet]
public JsonResult GetFilial(int id)
{
PersonModel person = db.Persons.Find(id);
FilialModel filial = db.Filials.FirstOrDefault(f => f.Name.Equals(person.BranchOffice));
return Json(filial, JsonRequestBehavior.AllowGet);
}
AngularJS code:
$http({
url: "/Contact/GetFilial",
params: { id: $routeParams.id },
method: "get"
}).then(function(response) {
$scope.thisFilial = response.data;
});
Html code:
<p>Open time: {{thisFilial.OpenTime | date:'HH:mm'}}</p>
Thank you for help!