DateTimeFormatter.IsoLocalDate Property

Definition

The ISO date formatter that formats or parses a date without an offset, such as '2011-12-03'.

[Android.Runtime.Register("ISO_LOCAL_DATE", ApiSince=26)]
public static Java.Time.Format.DateTimeFormatter? IsoLocalDate { get; }
[<Android.Runtime.Register("ISO_LOCAL_DATE", ApiSince=26)>]
static member IsoLocalDate : Java.Time.Format.DateTimeFormatter

Property Value

Attributes

Remarks

The ISO date formatter that formats or parses a date without an offset, such as '2011-12-03'.

This returns an immutable formatter capable of formatting and parsing the ISO-8601 extended local date format. The format consists of: <ul> <li>Four digits or more for the ChronoField#YEAR year. Years in the range 0000 to 9999 will be pre-padded by zero to ensure four digits. Years outside that range will have a prefixed positive or negative symbol. <li>A dash <li>Two digits for the ChronoField#MONTH_OF_YEAR month-of-year. This is pre-padded by zero to ensure two digits. <li>A dash <li>Two digits for the ChronoField#DAY_OF_MONTH day-of-month. This is pre-padded by zero to ensure two digits. </ul>

The returned formatter has a chronology of ISO set to ensure dates in other calendar systems are correctly converted. It has no override zone and uses the ResolverStyle#STRICT STRICT resolver style.

Java documentation for java.time.format.DateTimeFormatter.ISO_LOCAL_DATE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to