[Flow] DateTime: How can i save only the Date without the time in the db?

Timo Poppinga poppinga at iljansoft.de
Thu Jan 16 14:31:04 CET 2014


Hi,

how can i save only the Date without the time in the db?

I Format the field like this
                $propertyMappingConfiguration->forProperty('mediaDate')
                    ->setTypeConverterOption(
                        'TYPO3\Flow\Property\TypeConverter\DateTimeConverter',
                        \TYPO3\Flow\Property\TypeConverter\DateTimeConverter::CONFIGURATION_DATE_FORMAT,
                        'd.m.Y
                );


but now the system save the correct date plus the current time this triggers issues making an db query.

I like that only the date is saved in the db or 2014-01-16 00:00 is also ok.

Thx

Timo

iljansoft
Timo Poppinga
Mobile: +49 175 2 40 50 90

Inhaber: Timo Poppinga · Voßheider Str. 263 · 47574 Goch · E-Mail: poppinga at iljansoft.de · www.iljansoft.de
USt-IdNr.: DE 261656040











More information about the Flow mailing list