Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToStringTransformer::reverseTransform
Transforms a date string in the configured timezone into a DateTime object.
Signature
public function reverseTransform(string
$value )
Parameters
$value
— string- A value as produced by PHP's date() function
Returns
- DateTime
- An instance of \DateTime
Errors/Exceptions
-
TransformationFailedException
- If the given value is not a string,