Query result DateTime field conversion


I am interested to configure laminas to read dates from database as \DateTime objects.
I am surprised it does not do it my default. I am using oracle database.

The column type is Date type and laminas result set reads it as a string based on oracle nlm setting.

Kind regards
Monty Panday

The problem is which DateTime object? DateTime, DateTimeImmutable or a custom implementation of the DateTimeInterface.

You can use a hydrator to create the desired result: