[TYPO3-english] how to convert tstamp from db to human date
Piotr Burda
pburda at typo3job.com
Mon Jul 8 10:06:40 CEST 2013
I have this code to take date from database and to fill with it an input
field in powermail:
tmp.datetime = TEXT
tmp.datetime.dataWrap =
DB:tx_seminars_seminars:{GP:tx_seminars_pi1|uid}:begin_date
tmp.datetime.wrap3 = {|}
tmp.datetime.insertData = 1
termin = COA
termin {
10 = TEXT
10 < tmp.datetime
stdWrap.date = d m Y
}
Value from field begin_date is displayed in powermail form, but i need to
dispay it in human readable format (in DB it`s unix time) My problem is to
fromat tstamp to d m y
With the code above a have always today date (unixtime display is ok)
--
Pozdrawiam / Regards
Piotr Burda
tel: +48 535 576 380
pburda at typo3job.com
www.typo3job.com
Pobierz wizytówkę <http://new.typo3job.com/pburda.vcf>
More information about the TYPO3-english
mailing list