'What is the correct api document for date().parse()?

I googled to see how to create a Date from a string. One of the pages said to use the parse() method like this

def date = Date.parse('MM/dd/yyyy', '1/1/2020')

I am using Grails 4.03. The Grails document page says this is using Groovy 2.5.6. So, this does not work. To make this work, I need to add

implementation 'org.codehaus.groovy:groovy-dateutil:3.0.9' to the build.gradle file.

I am looking for the document for the parse() method.

None of these documents below tells me how to use the parse() method.

Which document should be the correct document for this parse() method?

https://docs.groovy-lang.org/docs/groovy-2.5.6/html/groovy-jdk/java/util/Date.html

https://docs.groovy-lang.org/docs/groovy-2.5.6/html/gapi/

https://docs.oracle.com/javase/8/docs/api/java/util/Date.html



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source