<div class="codetitle"> <span><a style="CURSOR: pointer" data="16465" class="copybut" id="copybut16465" onclick="doCopy('code16465')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code16465"> <br>//转换json格式的日期(如:{ServerDatetime:"\/Date(1278930470649)\/"})为Javascript的日期对象 <br>function ConvertJSONDateToJSDateObject(JSONDateString) { <br>var date = new Date(parseInt(JSONDateString.replace("/Date(", "").replace(")/", ""), 10)); <br>return date; <br>} <br> </div>