# DateTime Client Tag not working

**URL:** <https://forum.inductiveautomation.com/t/datetime-client-tag-not-working/7399>\
**Category:** Ignition\
**Created:** [October 11, 2013, 9:40am UTC](https://forum.inductiveautomation.com/t/datetime-client-tag-not-working/7399 "2013-10-11T09:40:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [October 11, 2013, 9:40am UTC](https://forum.inductiveautomation.com/t/datetime-client-tag-not-working/7399/1 "2013-10-11T09:40:55Z")

</div>

In Ignition 7.6.4rc1 when I create a datetime client tag, I can’t set a value in the designer or with a script :  
Cannot coerce value …

[attachment=2]err01.jpg[/attachment]

[attachment=1]err02.jpg[/attachment]

[attachment=0]err03.jpg[/attachment]

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [October 14, 2013, 1:25pm UTC](https://forum.inductiveautomation.com/t/datetime-client-tag-not-working/7399/2 "2013-10-14T13:25:16Z")

</div>

Have you tried setting the FormatString?

Without setting the format string the date would not show, but I didn’t receive an error. After setting the  
format string the date showed.

If you did set the FormatString, and are receiving the error, what format did you give it?

EDIT

Ok, I tried the format string you used and didn’t receive an error message. I would try updating Java to 7 update 25 and see if this resolves the issue.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [October 14, 2013, 7:47pm UTC](https://forum.inductiveautomation.com/t/datetime-client-tag-not-working/7399/3 "2013-10-14T19:47:25Z")

</div>

Yes with the format String “yyyy-MM-dd h:mm:ss a” it’s OK.  
The format String had been perhaps lost during the import from the GW 7.5.5 backup to 7.6.4rc1???  
Thanks for your help ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")
