for example the input is 2020-10-15 and 2020-10-17
How can i get all of the DateTime Ojbect?
public List<DateTime> getRangeDate (DateTime from, DateTime to) { List<DateTime> list = ** range from between to ** return list; } this function need return List and the list contain 3 DateTime Object
- 2020-10-15
- 2020-10-16
- 2020-10-17
没有评论:
发表评论