RSDDatePickerDataSource

public protocol RSDDatePickerDataSource : RSDPickerDataSource

A data source for selecting a date.

  • The type of UI picker to display for dates and times.

    Declaration

    Swift

    var datePickerMode: RSDDatePickerMode
  • Specify the minimum date range. Default = nil. When minimumDate > maximumDate, the values are ignored.

    Declaration

    Swift

    var minimumDate: Date?
  • Specify the maximum date range. Default = nil. When minimumDate > maximumDate, the values are ignored.

    Declaration

    Swift

    var maximumDate: Date?
  • The minute interval to display in a picker wheel or list of choices. The interval must be evenly divided into 60. For example, 5 is valid but 7 is not. Default is 1, minimum is 1, maximum is 30.

    Declaration

    Swift

    var minuteInterval: Int?
  • The date formatter for displaying the date in a text field or label

    Declaration

    Swift

    var dateFormatter: DateFormatter
  • textAnswer(from:) Extension method

    Returns the text answer to display for a given selected answer.

    Declaration

    Swift

    public func textAnswer(from selectedAnswer: Any?) -> String?

    Parameters

    selectedAnswer

    The answer to convert.

    Return Value

    A text value for the answer to display to the user.