<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSCalendar/nextDate(after:matchingHour:minute:second:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCalendar(im)nextDateAfterDate:matchingHour:minute:second:options:"
  },
  "title" : "nextDate(after:matchingHour:minute:second:options:)"
}
-->

# nextDate(after:matchingHour:minute:second:options:)

Returns the next date after a given date that matches the given hour, minute, and second, component values.

```
func nextDate(after date: Date, matchingHour hourValue: Int, minute minuteValue: Int, second secondValue: Int, options: NSCalendar.Options = []) -> Date?
```

## Parameters

`date`

The date for which to perform the calculation.

`hourValue`

The value for the hour component.

`minuteValue`

The value for the minute component.

`secondValue`

The value for the second component.

`options`

Options for the calculation. For possible values, see [`NSCalendar.Options`](/documentation/Foundation/NSCalendar/Options).

## Return Value

A new `NSDate` object.

---

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)