I created a simple date picker react js, after that I call API and get some data from API in the console, now I want to fetch API data on the web page. Here is the code i used to call API function, I want map response data on a web page Answer Here is the explanation for this issue
Tag: date-range
how to clear date range picker values on Button on click?
This is my code and I have date range picker and a clear button. when I click on the clear button the state get changed(changed to null values) and I want to show it in the UI. how can I set the value of date range picker to show it ? Answer The value you get in the onChange is
Loop through a date range with JavaScript
Given two Date() objects, where one is less than the other, how do I loop every day between the dates? Would this sort of loop work? But how can I add one day to the loop counter? Thanks! Answer Here’s a way to do it by making use of the way adding one day causes the date to roll over