Hello,

The doucment of 
"http://groovy-lang.org/groovy-dev-kit.html#_working_with_legacy_date_calendar_types";
 says:
"""
You can parse strings into dates and output dates into formatted strings:
def orig = '2000-01-01'
def newYear = Date.parse('yyyy-MM-dd', orig)
"""

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?


Best Regards,

Bob Yang

Reply via email to