JavaScriptHTML5すくりぷとみるきぃさんど
var xday = new Date(2026,5,10); var now = new Date(); var ms = xday.getTime() - now.getTime(); var days = ms / (24 * 60 * 60 * 1000); days = Math.ceil(days); document.write(days);