借助方法将日期转换为日期 [英] conversion of day to date with the help of method
本文介绍了借助方法将日期转换为日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何编写函数,该函数采用工作日,开始日期,结束日期和返回所有日期的三个参数
how to write function which take three parameters weekday, start date,end date and return all dates
推荐答案
如果我正确解释了您的问题,您想列出开始日期和结束日期之间的所有星期二的日期(例如).
正确答案取决于您如何显示工作日"参数.
是代表星期几的整数吗?
是像星期二"这样的字符串吗?
是您感兴趣的日期吗?
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?
这篇关于借助方法将日期转换为日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文