getPreviousMonth
Commons
stable
Returns a new Date set to the first day of the month that precedes 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 preceding 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 previous month at midnight local time.
Usage
Exemples
Extraits de code prêts à coller.
Navigate to the previous calendar month