Aller au contenu principal

DateTime():month()

Sets the month of the DateTime object. (1-based, January is 1).

Signature

month(month: number): DateTime

Parameters

ParametersTypeDescription
monthnumberThe month to set (1-12).

Returns

DateTime - The current DateTime instance for chaining.