# Write to tag and set timestamp?

**URL:** <https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100>\
**Category:** Ignition\
**Created:** [May 27, 2022, 1:57am UTC](https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100 "2022-05-27T01:57:43Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [July 13, 2023, 10:14am UTC](https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100/22 "2023-07-13T10:14:05Z")

</div>

When reading data from API and writing to the database using storeTaghistory and at the end writing the value to tag  
As tag have the historian enabled so again a new value is stored in the database with current time.

We cannot disabled the history as we are writing to that tag and storing in the database, only concern is when writing the last value to tag it save into the database

---

_[View the full topic](https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100)._
