# Perspective date time input - Can you add an option for current datetime?

**URL:** <https://forum.inductiveautomation.com/t/perspective-date-time-input-can-you-add-an-option-for-current-datetime/75415>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 22, 2023, 6:43pm UTC](https://forum.inductiveautomation.com/t/perspective-date-time-input-can-you-add-an-option-for-current-datetime/75415 "2023-06-22T18:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![r123](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@r123](https://forum.inductiveautomation.com/u/r123)\
**Post date:** [June 22, 2023, 8:55pm UTC](https://forum.inductiveautomation.com/t/perspective-date-time-input-can-you-add-an-option-for-current-datetime/75415/3 "2023-06-22T20:55:59Z")

</div>

This seems to work:

```auto
def runAction(self):
	date = system.date.now()
	self.props.value = system.date.setTime(system.date.now(),system.date.getHour24(date),system.date.getMinute(date),0)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-date-time-input-can-you-add-an-option-for-current-datetime/75415)._
