且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

借助方法将日期转换为日期

更新时间:2023-11-29 12:54:16

如果我正确解释了您的问题,您想列出开始日期和结束日期之间的所有星期二的日期(例如).

正确答案取决于您如何显示工作日"参数.

是代表星期几的整数吗?
是像星期二"这样的字符串吗?
是您感兴趣的日期吗?
If I interpret your question correctly, you want to list the dates of all Tuesdays (for example) between your start and end dates.

A correct answer will depend on how you present your ''weekday'' parameter.

Is it an integer representing the day of the week?
Is it a string like "Tuesday"?
Is it the date of the day you are interested in?