# Clear Perspective DateTime Input

**URL:** <https://forum.inductiveautomation.com/t/clear-perspective-datetime-input/28955>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [October 9, 2019, 12:33pm UTC](https://forum.inductiveautomation.com/t/clear-perspective-datetime-input/28955 "2019-10-09T12:33:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justop](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@justop](https://forum.inductiveautomation.com/u/justop)\
**Post date:** [October 9, 2019, 12:33pm UTC](https://forum.inductiveautomation.com/t/clear-perspective-datetime-input/28955/1 "2019-10-09T12:33:14Z")

</div>

I’m using Ignition 8.0.4 and the Perspective DateTime Input object. I have two inputs controlling the range for a Time Series Chart object. I’d like to have a reset button on the page to clear the contents of the DateTime Input object. I’ve tried adding an “onClick” event to the button this this code:

```
self.parent.parent.getChild("DateTimeInput_StartDate").props.formattedValues.datetime = ""

```

The Time Series Chart object will clear as I would like, but the old date/time remains in the DateTime Input. How can I clear the contents of the DateTime Input?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 9, 2019, 8:31pm UTC](https://forum.inductiveautomation.com/t/clear-perspective-datetime-input/28955/2 "2019-10-09T20:31:08Z")

</div>

```auto
self.parent.parent.getChild("DateTimeInput_StartDate").props.value = None

```
