I think i'm mainly having a brain fart. I just want to fast forward a Date()
until a specific day of the week and then get the Month, Day, Year for that.
E.g. today is 09/03/10 but i want a function (nextSession()
) to return 09/08/10 (next wednesday).
How would I do this? The best thing I can think of is add a day to setDate()
until getDay()
== 3, but it's sorta ugly...
P.S. jQuery is cool too.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…