getDayOfMonth
The getDayOfMonth() function returns the day of the month (1–31) for a TheDate with an optional timezone.
Interactive example
Syntax
typescript
function getDayOfMonth<
GenericInput extends TheDate
>(
input: GenericInput,
timezone?: Timezone
): numberParameters
input:TheDatevalue.timezone: Timezone (optional).
Return value
Day of the month (1–31) in the given timezone.
