First, we’re locating our date dropdown by finding the element we gave the ID of date-dropdown. Next, we’re getting the current year (as of this writing, 2020) as well as declaring how far back we want to populate our dropdown, which in this example is 1970.

5714

Learn to program dynamic year select lists in HTML forms to avoid the need to write up to 100 lines in your HTML. The JavaScript loop will write the options for 

handler. Type:  A flexible date picker component for React, with no dependencies, fully Using moment.js to parse and format dates · Using date-fns to parse and format

{!from &&am The value you assign should be an array (or observable array). The