ISOフォーマットの文字列でDateを生成して、1000で割ればおけ
var dateChanger = function(isoStr) {
var date = new Date(isoStr);
return parseInt(date/1000);
};
Go to list of users who liked
More than 5 years have passed since last update.
ISOフォーマットの文字列でDateを生成して、1000で割ればおけ
var dateChanger = function(isoStr) {
var date = new Date(isoStr);
return parseInt(date/1000);
};
Register as a new user and use Qiita more conveniently
Go to list of users who liked