9
ฉันจะลบนาทีจากวันที่ในจาวาสคริปต์ได้อย่างไร
ฉันจะแปลรหัสหลอกนี้เป็น js ที่ใช้งานได้อย่างไร [ไม่ต้องกังวลว่าวันที่สิ้นสุดมาจากไหนยกเว้นว่าจะเป็นวันที่จาวาสคริปต์ที่ถูกต้อง] var myEndDateTime = somedate; //somedate is a valid js date var durationInMinutes = 100; //this can be any number of minutes from 1-7200 (5 days) //this is the calculation I don't know how to do var myStartDate = somedate - durationInMuntes; alert("The event will start on …
143
javascript