getMonth
La fonction getMonth() renvoie le mois (1–12) correspondant à un TheDate, avec prise en charge optionnelle d'un fuseau horaire IANA.
Exemple interactif
Syntaxe
typescript
function getMonth<
GenericInput extends TheDate | SerializedTheDate
>(
input: GenericInput,
timezone: Timezone = "UTC"
): numberParamètres
input:TheDateouSerializedTheDate.timezone: Fuseau horaire IANA. Par défaut :"UTC".
Valeur de retour
Un entier compris entre 1 et 12 (janvier = 1).
