I have a flow that I want to pull data from a SharePoint list that are from a specific department, status is approved, and from the previous month. However, I can't get the filter query in the get items to pull all the records. I used the below today and it pulled almost the entire month of April except all records from April 30 and all but one record from April 29. I can't figure out why it didn't pull all from the date range.
Below is what I am using. The first "formatDateTime" is the following expression: formatDateTime(startOfMonth(getPastTime(1,'Month)),'M/d/yyyy')
The second "formatDateTime" is the following expression: formatDateTime(startOfMonth(utcNow()),'M/d/yyyy')

I plan on having this flow scheduled to run the first of every month to pull the data from the SharePoint list meeting the filter for the previous month.
I tried reading a few others posts, but they either were not quite the same or I didn't follow it.
Thanks!