Returns the localized string for the specified calendar identifier.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Foundation
Declaration
Parameters
calendarIdentifier
The calendar identifier indicating the calendar whose name you want. Use one of the values listed in Calendar Identifiers.
Return Value
A human readable string suitable for display to the user corresponding to the given calendar.
Discussion
For example, on an American English (en
) locale, passing NSCalendar
as the identifier, produces the string "Gregorian Calendar"
.