One Logo Pool Ball
Foundation · IOS API REFERENCE

Date.RelativeFormatStyle.Presentation

struct · iOS 15.0+ · SDK 27.1

struct Presentation

A type that represents the style to use when formatting relative dates, such as "1 week ago" or "last week".

Members (2)

get · iOS 15.0+

named

TypeScript
static get named(): Date_RelativeFormatStyle_Presentation
Swift declaration
static var named: Date.RelativeFormatStyle.Presentation { get }

"yesterday", "2 days ago", "last week", "next week"; falls back to the numeric style if no name is available.

get · iOS 15.0+

numeric

TypeScript
static get numeric(): Date_RelativeFormatStyle_Presentation
Swift declaration
static var numeric: Date.RelativeFormatStyle.Presentation { get }

"1 day ago", "2 days ago", "1 week ago", "in 1 week"

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →