Javascript JSON日期由sql开发人员以数字字符串形式显示

Javascript JSON日期由sql开发人员以数字字符串形式显示,javascript,json,oracle-sqldeveloper,Javascript,Json,Oracle Sqldeveloper,这是我用来获取和存储数据的代码,但我也想在数据被修改时进行存储。这在sqlDeveloper中被正确识别为当前日期。但是当我去取回它的时候,我得到的只是号码“144792181000” 我真的不明白它为什么这样做,任何帮助都将不胜感激 为什么这个标签是Java?我看这里没有涉及Java。请尝试将字符串编号转换为int,这样这就是您的时间戳!!这应该在updaterow函数中完成吗?当我用alert(data.modifiedDate)检查它时;它仍然是一个日期为什么这个标签是Java?我看这里没

这是我用来获取和存储数据的代码,但我也想在数据被修改时进行存储。这在sqlDeveloper中被正确识别为当前日期。但是当我去取回它的时候,我得到的只是号码“144792181000”


我真的不明白它为什么这样做,任何帮助都将不胜感激

为什么这个标签是Java?我看这里没有涉及Java。请尝试将字符串编号转换为int,这样这就是您的时间戳!!这应该在updaterow函数中完成吗?当我用alert(data.modifiedDate)检查它时;它仍然是一个日期为什么这个标签是Java?我看这里没有涉及Java。请尝试将字符串编号转换为int,这样这就是您的时间戳!!这应该在updaterow函数中完成吗?当我用alert(data.modifiedDate)检查它时;还是约会
 var source =
  {
     contentType : 'application/json',
     datatype: "json",
     datafields: [{ name: 'id' },
                  { name: 'roleId' },
                  { name: 'roleDesc' },
                  { name: 'rate' },
                  { name: 'createdBy' },
                  { name: 'createdDate' },
                  { name: 'modifiedDate' }
                  ],
     id: 'id',
     type: "POST",
     url: ACTION.GET_ROLE_DETAILS,
     root: 'result',
     updaterow: function (rowid, rowdata, commit) {
        //synchronize with the server - send update command
        var data = {};
        data.id = rowdata.id; 
        data.roleId=rowdata.roleId;
        data.roleDesc=rowdata.roleDesc;
        data.rate=rowdata.rate;
        data.createdBy=rowdata.createdBy;
        data.createdDate=rowdata.createdDate;

        var d = new Date();
        d = d.getDate() + "/" + (d.getMonth() +1) + "/" + d.getFullYear();

        data.modifiedDate= rowdata.d;

        console.log(data);

$.ajax({
           contentType : 'application/json',
           type: "POST",
           dataType: 'json',
           url: ACTION.SAVE_ROLE_DETAILS,
           data: JSON.stringify(data),
           success: function (data, status, xhr) {
              // update command is executed.
              if (loginGPID == rowdata.uniqueUserId) {
                 $("#cSpanFirstName").text(rowdata.firstName);
                 $("#cSpanLastName").text(rowdata.lastName);
              }
              $.ApplicationGeneralComponent.Notification({
                 type: APPLICATION.NOTY_TYPE_SUCCESS,
                 text: $.i18nManager('notify.user.update')
              });
              commit(true);
           },
           error: function () {
              commit(false);
           }
        });
     }
  };