# How to get the current date and / or time when the button was clicked

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-the-current-date-and-or-time-when-the-button-was-clicked/46798>\
**Category:** Ignition\
**Tags:** ignition79, vision, scripting\
**Created:** [May 17, 2021, 8:22pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-current-date-and-or-time-when-the-button-was-clicked/46798 "2021-05-17T20:22:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [May 17, 2021, 8:22pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-current-date-and-or-time-when-the-button-was-clicked/46798/1 "2021-05-17T20:22:55Z")

</div>

Hello everyone

I would like to get the current date and / or time the button was clicked.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 17, 2021, 8:32pm UTC](https://forum.inductiveautomation.com/t/how-to-get-the-current-date-and-or-time-when-the-button-was-clicked/46798/2 "2021-05-17T20:32:09Z")

</div>

`system.date.now()`
