getNextMonth
Commons
stable
Returns a new Date set to the first day of the month that follows the given date, without mutating the input.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- daterequisDate
- The reference date. Its year and month are used to compute the following month; the input is not mutated.
API
Valeur de retour
La valeur retournée par cet util.
- A new Date object pointing to the 1st of the next month at midnight local time.
Usage
Exemples
Extraits de code prêts à coller.
Navigate to the next calendar month