Ответ 1
Сначала удалите текст:
var src = "/Date(1302589032000+0400)/";
//Remove all non-numeric (except the plus)
src = src.replace(/[^0-9 +]/g, '');
//Create date
var myDate = new Date(parseInt(src));
Как я могу преобразовать формат даты /Date(1302589032000+0400)/
в объект JS Date?
Сначала удалите текст:
var src = "/Date(1302589032000+0400)/";
//Remove all non-numeric (except the plus)
src = src.replace(/[^0-9 +]/g, '');
//Create date
var myDate = new Date(parseInt(src));