# Trying to write date with Concat function (tag.0)

**URL:** <https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352>\
**Category:** Ignition\
**Created:** [October 4, 2020, 7:09pm UTC](https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352 "2020-10-04T19:09:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sammyjoe.gingras](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sammyjoe.gingras](https://forum.inductiveautomation.com/u/sammyjoe.gingras)\
**Post date:** [October 4, 2020, 7:09pm UTC](https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352/1 "2020-10-04T19:09:04Z")

</div>

Hi!  
i’m trying to concat dint to write a sting for date. All my tag are DINT. It work pretty well but the final string is: **1990.0** _1.0_.12.0. I dont understand why its not 1990.1.12… Why the final string add some random .0 ?

Here are more explanations:  
Blast.DeviceTag::Date\_Service\_Annee = 1990  
Blast.DeviceTag::Date\_Service\_Mois = 1  
Blast.DeviceTag::Date\_Service\_Jour = 12

concat({Blast.DeviceTag::Date\_Service\_Annee}, {Blast.DeviceTag::Date\_Service\_Mois}, {Blast.DeviceTag::Date\_Service\_Jour})

OR more simple…  
does it exist a way to write date by import ADE\_S\_Clock tag in designer?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 4, 2020, 7:25pm UTC](https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352/2 "2020-10-04T19:25:01Z")

</div>

What version of Ignition is this? What are the Ignition datatypes of the 3 source tags? What’s the datatype assigned to the expression tag you are using `concat` in?

It looks like the 3 values are being treated as floating point, but it’s not clear why, and not happening for me in 8.x.

---

<div class="post-metadata">

**Author:** ![sammyjoe.gingras](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sammyjoe.gingras](https://forum.inductiveautomation.com/u/sammyjoe.gingras)\
**Post date:** [October 4, 2020, 7:31pm UTC](https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352/3 "2020-10-04T19:31:16Z")

</div>

Hi Keven, thanx to reply.

Its version 10.0.8.  
Data type, on PLC:  
General.Blast ADE\_S\_Clock  
Blast.DeviceTag::Date\_Service\_Annee DINT  
Blast.DeviceTag::Date\_Service\_Mois DINT  
Blast.DeviceTag::Date\_Service\_Jour DINT

On Designer:  
General.Blast DONT WORK  
Blast.DeviceTag::Date\_Service\_Annee DOUBLE  
Blast.DeviceTag::Date\_Service\_Mois DOUBLE  
Blast.DeviceTag::Date\_Service\_Jour DOUBLE

The concat expression is directyl write into the TEXT property of a textline object.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 4, 2020, 7:33pm UTC](https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352/4 "2020-10-04T19:33:19Z")

</div>

Not sure what version 10.0.8 is, but if your tags are set as Double in the Designer then the behavior is correct. If you can’t change the datatype you’ll need to cast them to int first:

`concat(toInt({[~]Year}),toInt({[~]Month}),toInt({[~]Day}))`

---

<div class="post-metadata">

**Author:** ![sammyjoe.gingras](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sammyjoe.gingras](https://forum.inductiveautomation.com/u/sammyjoe.gingras)\
**Post date:** [October 4, 2020, 7:33pm UTC](https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352/5 "2020-10-04T19:33:45Z")

</div>

\*8.0.10 \*\*\*

---

<div class="post-metadata">

**Author:** ![sammyjoe.gingras](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sammyjoe.gingras](https://forum.inductiveautomation.com/u/sammyjoe.gingras)\
**Post date:** [October 4, 2020, 7:35pm UTC](https://forum.inductiveautomation.com/t/trying-to-write-date-with-concat-function-tag-0/39352/6 "2020-10-04T19:35:31Z")

</div>

Yesser, it works, thx!
