Inherits from NSFormatter
Declared in RKISO8601DateFormatter.h

Tasks

  •   timeZone

    The time zone for tge formatter.

    property
  •   locale

    The locale for the formatter.

    property
  •   parsesStrictly

    A Boolean value that determines if the receiver parses strictly.

    property
  •   format

    *Default**: RKISO8601DateFormatCalendar

    property
  •   includeTime

    A Boolean value that specifies if time should be included in the formatted strings.

    property
  •   timeSeparator

    The separator character to use between time components.

    property
  • – stringFromDate:

    Returns an ISO-8601 string representation of the given date.

Properties

format

*Default**: RKISO8601DateFormatCalendar

@property (nonatomic, assign) RKISO8601DateFormat format

Declared In

RKISO8601DateFormatter.h

includeTime

A Boolean value that specifies if time should be included in the formatted strings.

@property (nonatomic, assign) BOOL includeTime

Discussion

Default: NO

Declared In

RKISO8601DateFormatter.h

locale

The locale for the formatter.

@property (nonatomic, strong) NSLocale *locale

Discussion

Default: [NSLocale currentLocale]

Declared In

RKISO8601DateFormatter.h

parsesStrictly

A Boolean value that determines if the receiver parses strictly.

@property (nonatomic, assign) BOOL parsesStrictly

Discussion

Default: NO

Declared In

RKISO8601DateFormatter.h

timeSeparator

The separator character to use between time components.

@property (nonatomic, assign) unichar timeSeparator

Discussion

Default: ':'

Declared In

RKISO8601DateFormatter.h

timeZone

The time zone for tge formatter.

@property (nonatomic, strong) NSTimeZone *timeZone

Discussion

Default: [NSTimeZone defaultTimeZone]

Declared In

RKISO8601DateFormatter.h

Instance Methods

stringFromDate:

Returns an ISO-8601 string representation of the given date.

- (NSString *)stringFromDate:(NSDate *)date

Parameters

date

The date to be formatted into a string.

Return Value

An ISO-8601 formatted string representation of the date.

Declared In

RKISO8601DateFormatter.h