Skip to main content
added 37 characters in body
Source Link
Janty
  • 1.7k
  • 2
  • 15
  • 29

Its not issue of angularjs. you can use new Date(YourVariable).

 var datesting='/Date(1437626784877)/';
 $scope.active_datetoday = new=new Date(parseInt(datesting.replace('/Date(1437626784877', '')));

Updated for date as string input.

See JSFiddleJSFiddle

Its not issue of angularjs. you can use new Date(YourVariable).

  $scope.active_date = new Date(Date(1437626784877));

See JSFiddle

Its not issue of angularjs. you can use new Date(YourVariable).

 var datesting='/Date(1437626784877)/';
 $scope.today  =new Date(parseInt(datesting.replace('/Date(', '')));

Updated for date as string input.

See JSFiddle

Source Link
Janty
  • 1.7k
  • 2
  • 15
  • 29

Its not issue of angularjs. you can use new Date(YourVariable).

  $scope.active_date = new Date(Date(1437626784877));

See JSFiddle