7/29/2024 7:58 AM | |
Joined: 1/21/2013 Last visit: 8/15/2024 Posts: 3044 Rating:
|
Hi, You are using pure JavaScript to create a string value with a language-sensitive representation of the current date in the local timezone. To get a language-sensitive representation of the current time, you can use the toLocaleTimeString() method. The optional options parameter allows you to change the output format. This solution will work to display a time value on an IO field that is configured for output mode. However, it will not work if you want to get a tag value written by this script. And please make sure that you are really using this script to dynamize the process value. According to your code, you are using it to dynamize the output format. Kind regards |
This contribution was helpful to
1 thankful Users |
Follow us on