EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-01-01 11:11 PM
Hello,
What is the easiest way to have a logic program format a DT object into a particular string format to be written out to a string field? FORMATVAL is for expressions and I can't find an equivalent function in the help. Worst case is I can extract the individual time, day, month, year fields as integers and convert to string but there's got to be an easier way right?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-01-10 03:46 PM
You can use EXTRACT_DT_YEAR, EXTRACT_DT_MONTH, etc and then CONCAT then back together in the order you want (with some DINT_TO_STRING thrown in)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-01-10 03:46 PM
You can use EXTRACT_DT_YEAR, EXTRACT_DT_MONTH, etc and then CONCAT then back together in the order you want (with some DINT_TO_STRING thrown in)
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.