The easy way is to fetch the Teams Usage report data via Graph: https://www.michev.info/Blog/Post/3805/at-long-last-teams-usage-reports-are-available-via-the-graph-api
As the documentation is not published yet, I'm not certain at this point whether per-date queries will also be available (as in using the (date=2022-04-01) format), but the metadata document hints they should be.
Other than that, you can Tony's activity report script: https://office365itpros.com/2022/03/14/microsoft-365-groups-teams-activity-report/