[TYPO3-mvc] Ho do you get the timestamp from a DateTime property?
Claus Due
claus at wildside.dk
Mon Jan 30 21:26:36 CET 2012
Hi Stephen,
To get the timestamp do: $timeStampPropertyValueAsDateTime->format('U');
--
Cheers,
Claus
http://fedext.net
On Jan 30, 2012, at 9:01 PM, Stephen Bungert wrote:
> I have a datetime property which works fine, but now I want to get the timestamp and not have a datetime object returned - I want to compare the datetime field in a query. What do I have to do to get the timestamp (as stored in the database) and not a datetime object/array?
>
> Stephen.
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list