getFirstDayOfMonth
The getFirstDayOfMonth() function returns the first day of the month (as TheDate) for the provided date input.
Interactive example
Syntax
typescript
function getFirstDayOfMonth<
GenericInput extends TheDate | SerializedTheDate
>(
input: GenericInput
): TheDateParameters
input:TheDateorSerializedTheDate.
Return value
A TheDate set to the first day of the month (at midnight UTC).
