NSDateFormatter

E820434

NSDateFormatter is a Foundation framework class in Apple’s platforms used to convert between NSDate objects and their string representations according to specified date and time formats and locales.

All labels observed (2)

Label Occurrences
NSDateFormatter canonical 2
Swift DateFormatter 1

How this entity was disambiguated

Statements (50)

Predicate Object
instanceOf Foundation class
Objective-C class
date formatter
bridgedTo Swift DateFormatter
linked to: NSDateFormatter
framework Foundation
hasMethod dateFromString:
setDateFormat:
setDateStyle:
setLocale:
setTimeStyle:
setTimeZone:
stringFromDate:
hasProperty calendar
dateFormat
dateStyle
doesRelativeDateFormatting
generatesCalendarDates
lenient
locale
timeStyle
timeZone
introducedIn iOS 2.0
linked to: iPhone OS 2.0

macOS 10.0
language Objective-C
module Foundation.framework
platform iOS
macOS
tvOS
watchOS
purpose convert NSDate to string
convert string to NSDate
superclass NSFormatter
supports ISO 8601-like formats (via patterns)
calendar customization
custom format strings
date and time formatting
date formatting
format templates
internationalization
lenient parsing
locale customization
localization
predefined date styles
predefined time styles
relative date formatting
time formatting
time zone customization
threadSafety not thread-safe
usageRecommendation avoid creating new instances repeatedly
reuse instances for performance

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

NSDate relatedClass NSDateFormatter
NSTimeZone usedWith NSDateFormatter
NSDateFormatter bridgedTo Swift DateFormatter
linked to: NSDateFormatter