Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用http://www.datejs.com/。我一定是想念它,但是有没有办法可以通过它的日/月/年并让它告诉我这是星期五或星期一或其他什么?
你要:
.toString("dddd");
例如:
> Date.parse("1.16.2012").toString("dddd"); "Monday"
如果您想知道它是否是一周中的特定日子,您可以这样做:
Date.parse("1.16.2012").is().monday()