I have
public IEnumerable<object> GetStudentDate(string firstname)
{
var query = from usr in context.Student
where (usr.hasDateTime == true && (usr.LastName.Contains(lastname))
select new
{
CDate = usr.Date;
return query;
}
And i want to use it with AngularJs
UserDate {{user.CDate}}
But i only get something like this: UserDate /Date(1420875802707)/
How can i parse this DateTime to this Date or something like they said in reference:(Angular Ref) {{1288323623006 | date:'medium'}}
When i do usr.Date.ToString() formating with angular doesnt work.