getFirstDayOfMonth
The getFirstDayOfMonth() function returns the first day of the month (in TheDate format) for the given date.
Interactive example
Syntax
typescript
function getFirstDayOfMonth(
input: TheDate
): TheDateParameters
input:TheDatefor which to find the first day of the month.
Return value
A TheDate set to the first day of the month (at midnight UTC).
