# Datetime memory tag issues

**URL:** <https://forum.inductiveautomation.com/t/datetime-memory-tag-issues/34811>\
**Category:** Ignition Early Access\
**Created:** [May 16, 2020, 11:06am UTC](https://forum.inductiveautomation.com/t/datetime-memory-tag-issues/34811 "2020-05-16T11:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esn](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@Esn](https://forum.inductiveautomation.com/u/Esn)\
**Post date:** [May 16, 2020, 11:06am UTC](https://forum.inductiveautomation.com/t/datetime-memory-tag-issues/34811/1 "2020-05-16T11:06:00Z")

</div>

Hi,

When creating a memory tag with datetime datatype through script it seems that I can’t set the value?  
Running the code below makes the tag, but the value is None.  
Is it possible to set the value to a certain date?

```auto
def makeTag(path):
	tag = {}
	tag.update(name = 'DateTag')
	tag.update(dataType = 'DateTime')
	tag.update(value = system.date.getDate(2050,0,1))
	tag.update(formatString = 'yyyy-MM-dd h:mm:ss aa')
	tag.update(valueSource = 'memory')
	tag.update(executionMode = 'TagGroupRate')
	print system.tag.configure(path,[tag],'o')

makeTag('TestFolder')

```

Next issue is editing a memory tag with datetime datatype.  
When running the code below the value of the tag is set to None even when having a date as value before the edit. By chosing ‘m’ for collision policy the operation shouldn’t override any of the other tag properties?  
Is it possible to run the system.tag.configure function without nulling the value?

```auto
def editTag(path,tag):
	conf = system.tag.getConfiguration(path+'/'+tag)
	conf[0]['tagGroup'] = 'Default'
	system.tag.configure(path,conf,'m')

editTag('TestFolder','DateTag')

```

Thanks

---

<div class="post-metadata">

**Author:** ![Esn](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@Esn](https://forum.inductiveautomation.com/u/Esn)\
**Post date:** [September 23, 2020, 11:45am UTC](https://forum.inductiveautomation.com/t/datetime-memory-tag-issues/34811/2 "2020-09-23T11:45:08Z")

</div>

If anyone is interested the first issue is resolved by convertring the date milliseconds  
system.date.toMillis(system.date.getDate(2050,0,1))

The second issue remains unresolved, but there is some info:

> Whenever you change the Tag Group, the value of the tag will also update and start polling values at the new rate specified. However, this may be a bug.
