![](/img/trans.png)
[英]Given a ISO 8601 date/time, how to use JS date() to get the day of the week (0-6)?
[英]How to get start and end Datetime of ISO 8601 week in JavaScript?
如果我有年份(比如2013)和ISO周(比如35),我如何在纯JavaScript中获得开始和结束日期时间?
是否有任何特定的库来处理JavaScript中的DateTime?
尝试
var date = new Date('01 Jan ' + year);
date.setDate(35 * 7);
date.setDate(date.getDate() - date.getDay()) //it will give the start of the week
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.