# Make EuiSuperDatePicker invalid explicitly

**URL:** <https://discuss.elastic.co/t/make-euisuperdatepicker-invalid-explicitly/231624>\
**Category:** Kibana\
**Created:** [May 7, 2020, 9:08pm UTC](https://discuss.elastic.co/t/make-euisuperdatepicker-invalid-explicitly/231624 "2020-05-07T21:08:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi\_yadav2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_yadav2/32/61530_2.png) [@ravi\_yadav2](https://discuss.elastic.co/u/ravi_yadav2)\
**Post date:** [May 7, 2020, 9:08pm UTC](https://discuss.elastic.co/t/make-euisuperdatepicker-invalid-explicitly/231624/1 "2020-05-07T21:08:55Z")

</div>

Hi Team,

I want to throw invalid range by EuiSuperDatePicker explicitly for particular date ranges. Is this possible. Please Help!

 ![datePicker](https://us1.discourse-cdn.com/elastic/original/3X/1/c/1c2ffd7e04219e45c758ca01d63f5a5ae78f9161.png)

Same error behaviour as shown in image how can i achieve it for my time range.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [May 8, 2020, 9:56am UTC](https://discuss.elastic.co/t/make-euisuperdatepicker-invalid-explicitly/231624/2 "2020-05-08T09:56:04Z")

</div>

This logic is handled within the component itself by this function: [https://github.com/elastic/eui/blob/master/src/components/date\_picker/super\_date\_picker/super\_date\_picker.tsx#L138](https://github.com/elastic/eui/blob/master/src/components/date_picker/super_date_picker/super_date_picker.tsx#L138)

It's not configurable from the outside. You can open a feature request on the EUI repository for this - I can definitely see the use case.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 5, 2020, 9:56am UTC](https://discuss.elastic.co/t/make-euisuperdatepicker-invalid-explicitly/231624/3 "2020-06-05T09:56:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
