java如何在开始日期和结束日期所在的月份不同时生成日期列表?
假设我有startDate
,endDate
,currentDate
1.
我想忽略startDate
和endDate
在currentDate
个月之外的实例
2.
当startDate
和currentDate
属于同一个月,但endDate
的月份大于currentDate
时,在startDate
和startDate
的月份结束日之间创建一个列表
3.
当endDate
与currentDate
同月且startDate
少于currentDate
个月时,在endDate
和currentDate
的第一天之间创建一个列表
我想得到一些处理方法的帮助
谢谢!
共 (0) 个答案