# How to get real date and time from dataset?

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-real-date-and-time-from-dataset/104750>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 6, 2025, 8:42am UTC](https://forum.inductiveautomation.com/t/how-to-get-real-date-and-time-from-dataset/104750 "2025-04-06T08:42:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 6, 2025, 9:10am UTC](https://forum.inductiveautomation.com/t/how-to-get-real-date-and-time-from-dataset/104750/7 "2025-04-06T09:10:39Z")

</div>

There's a 32-post long thread started in 2012 on the topic.

- There are some script conversions to extract the date.
- There is an Expression Language conversion in post #27 for "the old Siemens Date\_AndTime" datatype to a string (usually a bad idea but could be modified to give a timestamp).
- There seems to be a simple solution in post #31, March 2024.

> [@SIEMENS Driver DATE\_AND\_TIME values](https://forum.inductiveautomation.com/t/siemens-driver-date-and-time-values/5198/32):
>
> There are one or two of the date/time types that are available over OPC UA with no fuss. I forget which ones... I can check in a bit. edit: use LDT in the PLC, it gets exposed via the Siemens OPC UA Server as an OPC UA DateTime value.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-get-real-date-and-time-from-dataset/104750)._
