//Convert the date in json format (such as: {ServerDatetime:"/ Date(1278930470649)/"}) is the date object of Javascript
function ConvertJSONDateToJSDateObject(JSONDateString) {
var date = new Date(parseInt(JSONDateString.replace("/Date(", "").replace(" )/", ""), 10));
return date;
}