# Capture current date and time into a memory tag

**URL:** <https://forum.inductiveautomation.com/t/capture-current-date-and-time-into-a-memory-tag/116936>\
**Category:** Ignition\
**Created:** [August 28, 2026, 1:32pm UTC](https://forum.inductiveautomation.com/t/capture-current-date-and-time-into-a-memory-tag/116936 "2026-08-28T13:32:51Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [August 28, 2026, 8:10pm UTC](https://forum.inductiveautomation.com/t/capture-current-date-and-time-into-a-memory-tag/116936/13 "2026-08-28T20:10:49Z")

</div>

There was a bug for event scripts:

> [@\[IGN-16691\]Gateway Event Script Compile Error](https://forum.inductiveautomation.com/t/ign-16691-gateway-event-script-compile-error/116115):
>
> I'm not sure if I'm crazy or what but I'm running into a compile error when trying to save a script for a Gateway Event. Crazy thing it I'm positive I was not getting this error running on 8.3.2. Then I upgraded to 8.3.7 and went into the script to add something and when I try to close & save I get a compile error. The other crazy thing is that I don't think I should be getting a compile error because the error is complaining about indent and my indent looks fine to me. Since the code is on t…

This was more of an annoyance than anything actually wrong. There was a workaround here:

> [@\[IGN-16691\]Gateway Event Script Compile Error](https://forum.inductiveautomation.com/t/ign-16691-gateway-event-script-compile-error/116115/5):
>
> I'm facing the same error after upgrading to 8.3.7 I've noticed that the issue is on the first indent/keyword. If you don't want to move your logic into libraries, another workaround is by adding triple-quoted string on first line. """""" and it let you save. I hope it gets fixed soon.

This is fixed in 8.3.9, released a few days ago.

---

_[View the full topic](https://forum.inductiveautomation.com/t/capture-current-date-and-time-into-a-memory-tag/116936)._
