2

Can I show datepicker's year for just five years instead of showing 1919 to 2119?

3

You need to specify the min and max attributes.

E.g.

<lightning-input type="date" name="input8" label="Date field with min and max values" value="2017-09-07" min="2017-09-05" max="2017-09-22" ></lightning-input>

See https://developer.salesforce.com/docs/component-library/bundle/lightning-input/example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.