How can one return the next date of a given weekday (it could be either a number 0-6 or names Sunday-Saturday).
Example, if today, on Friday 16-Oct-2009 I passed in:
- Friday, it would return today's date 16-Oct-2009
- Saturday returns 17-Oct-2009
- Thursday returns 22-Oct-2009
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…