# Clear data from date component

**URL:** <https://forum.inductiveautomation.com/t/clear-data-from-date-component/107345>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 12, 2025, 7:26pm UTC](https://forum.inductiveautomation.com/t/clear-data-from-date-component/107345 "2025-06-12T19:26:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gilberto\_Diaz](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@Gilberto\_Diaz](https://forum.inductiveautomation.com/u/Gilberto_Diaz)\
**Post date:** [June 12, 2025, 7:26pm UTC](https://forum.inductiveautomation.com/t/clear-data-from-date-component/107345/1 "2025-06-12T19:26:57Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/038dcf2f34b3a60ee1954f086f7c0363a7caddf3.png)

Is there any setting for clearing the selection and empty the input? Something similar to the selection of the dropdown and next to the drop icon has an `x` to clear the selection?

---

<div class="post-metadata">

**Author:** ![ott.andrew33](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ott.andrew33/32/44625_2.png) [@ott.andrew33](https://forum.inductiveautomation.com/u/ott.andrew33)\
**Post date:** [June 12, 2025, 7:52pm UTC](https://forum.inductiveautomation.com/t/clear-data-from-date-component/107345/2 "2025-06-12T19:52:58Z")

</div>

Something like this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/5/2512f2ebe8eddb42c729975052b62cda8010e1ca.png)

I just ran into this situation yesterday and developed a work around. I put the date picker component and an icon component in a flex container. There is a script on the icon's OnClick event to set the date to None. See script below:

```python
self.getSibling("DateTimeInput").props.value = None

```

Hopefully that helps!
