[TYPO3-dev] transforming variables to date values (int(11))

Christian Hensel christian.hensel at gmx.net
Sat Jun 23 23:24:38 CEST 2007


Hi Developers,
all around there. i just recently started extension programming with typo3,
so my question might be easy.

in my extension users enter dates and times in the following way:

statdate: 13-06-2007
starttime 1200

In order, that i might save them in the Database i have to transform an 
combine them to
int(11) Values.
Any advice how to do that?

i thought strtotime(); should work, but don't now hot to combine both 
data...
'.strtotime($this->piVars['starttime']).'

regards
Christian






More information about the TYPO3-dev mailing list