The DateTimeAdapter transforms the input value from a string into it's (possibly formatted) DateTime(Immutable) representation.
Ex. The string '<datetime("2023-06-01", format: "d/m/Y")>'
will be transformed into '01/06/2023'
.
<?php
use Presta\BehatEvaluator\Adapter\DateTimeAdapter;
$evaluate = new DateTimeAdapter();
$value = $evaluate('<datetime_immutable("tomorrow")>');
// $value is equal to `new \DateTimeImmutable('tomorrow')`