You can find the first day of this week:
trunc('week', current_date)
And on the first day of the first week of this month:
trunc('week', date_trunc('month', current_date))
Subtract two to find the month of the month:
extract('day' from date_trunc('week', current_date) - date_trunc('week', date_trunc('month', current_date))) / 7 + 1
Andomar
source share