DateTimeFormatterBuilder.ISO_WEEK_DATE

The ISO date formatter that formats or parses the week-based date without an offset, such as '2012-W48-6'. !(p) This returns an immutable formatter capable of formatting and parsing the ISO-8601 extended week-based date format. The format consists of: !(ul) !(li)Four digits or more for the {@link IsoFields#WEEK_BASED_YEAR week-based-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)The letter 'W'. Parsing is case insensitive. !(li)Two digits for the {@link IsoFields#WEEK_OF_WEEK_BASED_YEAR week-of-week-based-year}. This is pre-padded by zero to ensure three digits. !(li)A dash !(li)One digit for the {@link ChronoField#DAY_OF_WEEK day-of-week}. The value run from Monday (1) to Sunday (7). !(li)If the offset is not available to format or parse then the format is complete. !(li)The {@link ZoneOffset#getId() offset ID}. If the offset has seconds then they will be handled even though this is not part of the ISO-8601 standard. Parsing is case insensitive. </ul> !(p) As this formatter has an optional element, it may be necessary to parse using {@link DateTimeFormatter#parseBest}. !(p) 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 {@link ResolverStyle#STRICT STRICT} resolver style.

class DateTimeFormatterBuilder
static
ISO_WEEK_DATE
()

Meta