Sonu Chaudhary

Sonu Chaudhary

  • NA
  • 1.8k
  • 279.8k

how to access array of datetime from viewdata in javascrip

Jun 2 2016 9:44 AM
I have array of DateTime in my ViewBag on controller. But when i want to access this viewbag on view/page. when i debug javascript then it show:-
var array = ["\/Date(1464208500000)\/","\/Date(1464302100000)\/","\/Date(1464226500000)\/"];
i want value like this:-
var array = ['5/26/2016 02:10:00 AM', '5/27/2016 4:10:00 AM', '5/26/2016 7:10:00 AM'];

Answers (1)