[FLOW3-general] datetime validator
John Small
flow3.tiny69 at net-con.net
Mon Jan 7 11:46:37 CET 2013
Hi,
for output in your template use this:
{somedate -> f:format.date(format:'d.m.Y H:i')}
in your controller goes this:
public function initializeCreateAction() {
$this->addFlashMessage('here: initializeCreateAction');
// set Format for property begin
$this->arguments['newEvent']
->getPropertyMappingConfiguration()
->forProperty('begin')
->setTypeConverterOption('TYPO3\FLOW3\Property\TypeConverter\DateTimeConverter',
\TYPO3\FLOW3\Property\TypeConverter\DateTimeConverter::CONFIGURATION_DATE_FORMAT,
'!d.m.Y H:i');
}
same for an update method
Am 07.01.2013 11:40, schrieb Federico Bernardin:
> Hi,
> I've a form to set an object with fluid but I need to change the date format validator value. In the framework is Y-m-d I need d/m/Y.
>
> Can you help me?
>
> Thanks
> Federico
>
>
--
kind regards
More information about the FLOW3-general
mailing list