# Getting error on system.date.now()

**URL:** <https://forum.inductiveautomation.com/t/getting-error-on-system-date-now/81361>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 2, 2023, 9:44am UTC](https://forum.inductiveautomation.com/t/getting-error-on-system-date-now/81361 "2023-11-02T09:44:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divyansh\_Sachdev](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Divyansh\_Sachdev](https://forum.inductiveautomation.com/u/Divyansh_Sachdev)\
**Post date:** [November 2, 2023, 9:44am UTC](https://forum.inductiveautomation.com/t/getting-error-on-system-date-now/81361/1 "2023-11-02T09:44:40Z")

</div>

when i am using system.date.now() in place of datetime.now() in ignition scripting function the button which i have created in the vision client is not working.

Actually the place where i am changing it it just update the database and when the database is updated it give me the output in the window but the database is not updating and when i am using datetime.now() the correct date and time is not coming

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 2, 2023, 9:49am UTC](https://forum.inductiveautomation.com/t/getting-error-on-system-date-now/81361/2 "2023-11-02T09:49:51Z")

</div>

Well, without seeing the script or the error, it's going to be difficult to give advice.
