groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Molinari <mauro...@tiscali.it>
Subject Re: Is there no any more Date.parse(pattern, date_string) methods like Groovy User Guide Document says?
Date Thu, 27 Feb 2020 09:19:12 GMT
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


Mime
View raw message