[TYPO3-english] extbase DateTime property mapping error in 6.1
Domi
djgarms at gmail.com
Thu May 16 21:51:51 CEST 2013
Hi,
after searching the net I found an old post about this issue and could
solve my parsing with additional code in my initializedAction():
// this configures the parsing
if (isset($this->arguments['client'])) {
$this->arguments['client']
->getPropertyMappingConfiguration()
->forProperty('dateOfBirth')
->setTypeConverterOption('TYPO3\\CMS\\Extbase\\Property\\TypeConverter\\DateTimeConverter',
\TYPO3\CMS\Extbase\Property\TypeConverter\DateTimeConverter::CONFIGURATION_DATE_FORMAT,'Y-m-d');
}
As I have more then one DatTime obect, is there a possibility setting
this date format in an easier way, or is this the way to go?
Thanks for reading,
Dominic
More information about the TYPO3-english
mailing list