function getDateStringFromJson(jsondate) {
var date = new Date(parseInt(jsondate.replace(/^\/Date\((\d+)\)\/$/gi, '$1'), 10));
var curr_date = date.getDate();
var curr_month = date.getMonth();
curr_month = curr_month + 1;
var curr_year = date.getFullYear();
date= curr_month + '/'+ curr_date + '/'+ curr_year;
return date;
}
No comments:
Post a Comment