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

Timo Poppinga poppinga at iljansoft.de
Thu Jan 16 15:59:29 CET 2014


Hi Christian,

this was an copy paste mistake.

So this will not solve the problem.

But thx a lot for the hint

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









Am 16.01.2014 um 15:13 schrieb Christian Huppert <chr.huppert at yahoo.de>:

> Hi Timo,
> 
> I am quite new to Typo3 Flow, so I am not sure if my message is helpful but I saw that you forgot to close the d.m.Y with a single quote.
> Maybe this already sorts out your issue.
> 
> Best
> Christian
> 
> 
> 
> 
> Timo Poppinga <poppinga at iljansoft.de> schrieb am 14:31 Donnerstag, 16.Januar 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
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list