# Date variable addressing

**URL:** <https://forum.inductiveautomation.com/t/date-variable-addressing/77396>\
**Category:** General Discussion\
**Tags:** ignition81\
**Created:** [August 3, 2023, 7:17pm UTC](https://forum.inductiveautomation.com/t/date-variable-addressing/77396 "2023-08-03T19:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_hugo\_gutierre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/victor_hugo_gutierre/32/49849_2.png) [@Victor\_hugo\_gutierre](https://forum.inductiveautomation.com/u/Victor_hugo_gutierre)\
**Post date:** [August 3, 2023, 7:17pm UTC](https://forum.inductiveautomation.com/t/date-variable-addressing/77396/1 "2023-08-03T19:17:19Z")

</div>

good, a query I have a variable of type date in a M580 schneider which is communicated through modbus tcp, in the ignition I configure my data type with data  
-time and in opc item path I put hrbcd\_32'address' but it does not display the same value that I put in the M580, how could I configure it?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 3, 2023, 7:40pm UTC](https://forum.inductiveautomation.com/t/date-variable-addressing/77396/2 "2023-08-03T19:40:03Z")

</div>

There no automatic conversion for (Modbus) dates. You'll need to unpack the result byte by byte and construct a `java.util.Date` instance with the details. You will almost certainly want to put such a function in a library and call it from a derived tag expression.

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [August 3, 2023, 7:53pm UTC](https://forum.inductiveautomation.com/t/date-variable-addressing/77396/3 "2023-08-03T19:53:09Z")

</div>

You can also write code in your M580 to convert the date into a string and read the string in modbus.
