# System.tag.configure with DateTime

**URL:** <https://forum.inductiveautomation.com/t/system-tag-configure-with-datetime/34452>\
**Category:** Ignition\
**Created:** [May 5, 2020, 4:13pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-datetime/34452 "2020-05-05T16:13:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [May 5, 2020, 4:13pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-datetime/34452/1 "2020-05-05T16:13:33Z")

</div>

Does anyone know why this does not work? It creates the tag but the value is blank. I am expecting there to be the current date time as the value.

```auto
tag = tag = {
				"name": "timeChanged",
				"valueSource": "memory",
				"dataType": "DateTime",
				"value": system.date.now()
		}

system.tag.configure(basePath = "[tagProvider]", tags = [tag], collisionPolicy = "m")

```

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [May 5, 2020, 6:36pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-datetime/34452/2 "2020-05-05T18:36:55Z")

</div>

is tagProvider correct ? may be try without basePath as :

```auto
system.tag.configure(tags = [tag], collisionPolicy = "m")

```

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [May 5, 2020, 8:37pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-datetime/34452/3 "2020-05-05T20:37:16Z")

</div>

The tag provider must be correct because it makes the tag. It just is not setting the value.

---

<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:** [May 6, 2020, 12:29pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-datetime/34452/4 "2020-05-06T12:29:14Z")

</div>

The value is in milliseconds. Try `system.date.toMillis(system.date.now())`

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [May 6, 2020, 4:58pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-datetime/34452/5 "2020-05-06T16:58:51Z")

</div>

That worked. Thanks.
