获取B站注册时间

访问 https://member.bilibili.com/x2/creative/h5/calendar/card?ts=0 或者 https://member.bilibili.com/x2/creative/h5/calendar/event?ts=0

找到 jointime,后面的一串10位的数字就是注册的时间戳了

找个 在线工具 直接转换,或者用js转换

var timestamp = xxxxxxxxxx;
var result = new Date(parseInt(timestamp) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
console.log(result);

完整jQuery.ajax获取代码:

$.ajax({
    type: "GET",
    async: false,
    url: "https://member.bilibili.com/x2/creative/h5/calendar/card?ts=0",
    dataType: "json",
    xhrFields: {
    withCredentials: true //允许跨域带Cookie
    },
    success: function (data) {
        var timestamp = data.data.jointime;
        var regdate = new Date(parseInt(timestamp) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '); // 时间戳转日期
    }
});