Il 27/02/2020 08:30, 杨波 ha scritto:
But when I use Groovy 2.5.9, there is no such Date.parse(pattern, date_str) method.Instead I found the LocateDate.parse(date_str, pattern) method.Is it the document outdated or I use something wrong?
Ensure you have groovy-dateutil JAR in your classpath. It contains org.apache.groovy.dateutil.extensions.DateUtilStaticExtensions which provides the mentioned method.
Mauro