1
Answer

how to access array of datetime from viewdata in javascrip

Sonu Chaudhary

Sonu Chaudhary

8y
333
1
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)