Method | Description | |
---|---|---|
reverseTransform ( string $value, $originalValue ) : DateTime | Transforms a date string in the configured timezone into a DateTime object | |
transform ( DateTime $value ) : string | Transforms a DateTime object into a date string with the configured format and timezone |
Method | Description | |
---|---|---|
configure ( ) | {@inheritDoc} |
public reverseTransform ( string $value, $originalValue ) : DateTime | ||
$value | string | A value as produced by PHP's date() function |
return | DateTime | A DateTime object |