Hello!
I’m having troubles parsing dates in Ignition scripting.
When I execute the following code:
print(system.date.now())
The output is:
Wed Jun 30 06:28:38 BRT 2021
The problem comes when I try to do the reverse operation, parsing this same string as a Date
date=system.date.parse('Wed May 05 08:11:59 BRT 2021')v
Throws
java.text.ParseException: java.text.ParseException: Unparseable date: "Wed May 05 08:11:59 BRT 2021"
What is causing this? Is it because this date is a ZonedDateTime?
Thanks in advance