One Logo Pool Ball
Foundation · IOS API REFERENCE

Date.FormatStyle.Symbol.YearForWeekOfYear

struct · iOS 15.0+ · SDK 27.1

struct YearForWeekOfYear

A type that specifies the format for a year in week-of-year calendars when you parse a string with a date format string.

Members (4)

get · iOS 15.0+

defaultDigits

TypeScript
static get defaultDigits(): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declaration
static var defaultDigits: Date.FormatStyle.Symbol.YearForWeekOfYear { get }

Minimum number of digits that shows the full year in "Week of Year"-based calendars. For example, `2`, `20`, `201`, `2017`, `20173`.

static · iOS 15.0+

padded

TypeScript
static padded(length: number): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declaration
static func padded(_ length: Int) -> Date.FormatStyle.Symbol.YearForWeekOfYear

Three or more digits. Padded if necessary. For example, `002`, `020`, `201`, `2017`, `20173`.

get · iOS 18.0+

omitted

TypeScript
static get omitted(): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declaration
static let omitted: Date.FormatStyle.Symbol.YearForWeekOfYear

The option for not including the symbol in the formatted output.

get · iOS 15.0+

twoDigits

TypeScript
static get twoDigits(): Date_FormatStyle_Symbol_YearForWeekOfYear
Swift declaration
static var twoDigits: Date.FormatStyle.Symbol.YearForWeekOfYear { get }

Two low-order digits. Padded or truncated if necessary. For example, `02`, `20`, `01`, `17`, `73`.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →