2021年1月27日星期三

How to convert a range datetime to each datetime in C#?

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
https://stackoverflow.com/questions/65930050/how-to-convert-a-range-datetime-to-each-datetime-in-c January 28, 2021 at 10:07AM

没有评论:

发表评论