Return array of objects with xpath and loop through them

Hello,

Is it possible to return array of TestObject with xpath. For example something like:
TestObject tableRowsArray = findTestObject(‘Object Repository/tableRows’)

Now… Object Repository/tableRows is selected by xPath which returns array of
I would like to be able to loop through tableRowsArray so I can do something with every every row.

The reason for this is that xpath doesn’t provide date comparison and I need to get the row with specific date that is generated during script execution.

I have read the solution for formats like “2020-02-02” where you can remove - and compare in xpath them but my dates contain names of the day and month, so this approach is not good for me

Thank you
Ismar