TOLOCALDATE
- Last UpdatedSep 29, 2022
- 1 minute read
- PI System
- PI OLEDB Enterprise 2019
- Developer
DateTime TOLOCALDATE (x DateTime)
DateTime TOLOCALDATE (x Time)
In UTC mode, the function returns the local time for a given UTC time. In Local mode, the function returns the input value.
Examples
In UTC mode:
In this example, local time is an hour ahead of UTC time.
In Local mode: