Skip to main content
Version: Java (Groovy)

parseLocalDate

parseLocalDate parses the string argument as a local date, which is a date without a time or time zone. Date strings are formatted according to the ISO 8601 date time format as YYYY-MM-DD.

Syntax

parseLocalDate(s)

Parameters

ParameterTypeDescription
sstring

The string to be converted. Format is yyyy-MM-dd.

Returns

An Instant.

Examples

date = parseLocalDate("1995-08-02")

println date