In my project, I have to set minimum and maximum dates in DateTimePicker. Although it has both date and time components, I just want to select min and max dates and not min and max time. So, for example, if minimumDate is 19 December 2022, the user can select any time from 00:00 to 23:59 of 19 December. How can I do this?
Please help wrt React Native and Javascript.
2
Answers
Use this function of getting exact Date formats and pass it to min max props or wherever you want