<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Date/ComponentsFormatStyle/DiscreteFormatStyle-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "DiscreteFormatStyle Implementations"
}
-->

# DiscreteFormatStyle Implementations

## Topics

### Instance Methods

[`func discreteInput(after: Range<Date>) -> Range<Date>?`](/documentation/Foundation/Date/ComponentsFormatStyle/discreteInput(after:))

The next discretization boundary after the given input.

[`func discreteInput(before: Range<Date>) -> Range<Date>?`](/documentation/Foundation/Date/ComponentsFormatStyle/discreteInput(before:))

The next discretization boundary before the given input.

[`func input(after: Range<Date>) -> Range<Date>?`](/documentation/Foundation/Date/ComponentsFormatStyle/input(after:))

The next input value after the given input.

[`func input(before: Range<Date>) -> Range<Date>?`](/documentation/Foundation/Date/ComponentsFormatStyle/input(before:))

The next input value before the given input.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)