Can I show datepicker's year for just five years instead of showing 1919 to 2119?
[SalesForce] LWC Date Picker – Year Display in
Related Topic
- [SalesForce] LWC lightning-input type=”date” setting value and changing value dynamically with modified date
- [SalesForce] LWC: How to display svg icons
- [SalesForce] Sorting on Date field in lightning data table is only sorting with Day not with Day month and year(complete Date value) in LWC
- [SalesForce] How to format LWC´s datatable date picker´s input display date
Best Answer
You need to specify the
min
andmax
attributes.E.g.
See https://developer.salesforce.com/docs/component-library/bundle/lightning-input/example