[TYPO3-english] how to convert tstamp from db to human date

François Suter fsu-lists at cobweb.ch
Mon Jul 8 11:50:54 CEST 2013


Hi,

> it does`n work, after applying your code nothing is filled in input field

I think the problem comes from the fact that dataWrap is called after 
date. One solution would be to use the nested stdWrap call, i.e. 
something like this (not tested):

tmp.datetime = TEXT
tmp.datetime.stdWrap.dataWrap =
DB:tx_seminars_seminars:{GP:tx_seminars_pi1|uid}:begin_date
tmp.datetime.stdWrap.wrap3 = {|}
tmp.datetime.stdWrap.insertData = 1

termin = COA
termin {
      10 = TEXT
      10 < tmp.datetime
      10.date = d m Y
}

HTH

-- 

Francois Suter

Work: Cobweb Development Sarl - http://www.cobweb.ch

TYPO3: Help the project! - http://typo3.org/contribute/

Appreciate my work? Support me -
http://www.monpetitcoin.com/en/francois/support-me/



More information about the TYPO3-english mailing list