How would you have implemented range for the component DatePicker?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Make your custom DatePicker, there is a need to make range of dates that I could choose several to give on one calendar. How would you implement this? I've got this idea:
Create a range array that stores two values: the startDate and endDate and an integer property step.
When I selected the first date - step incrementorum per unit, initializes the startDate, the second you click step again incremented by one, and initializes the value of the endDate. This is the normal approach or something else?
How to store intermediate date between startDate and endDate?(to customize)
by | 13 views

1 Answer

0 like 0 dislike

Related questions

110,608 questions
257,187 answers
40,796 users