Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Convert date to date
Hello,
I need to convert a Y-m-d
to d italian_month Y
.
I tried with <txp:variable name="thedate"><txp:custom_field name="longdate" /></txp:variable>
but now I am stuch at <txp:php>echo ...;</txp:php>
Thanks for any suggestion
Offline
Offline
Re: Convert date to date
Thanks Etc,
I tried <txp:etc_date format="%d %B %Y"><txp:custom_field name="Data_evento" /></txp:etc_date>
but I get the date as is in the field, 2015-05-01…
Tried also <txp:etc_date format="%d %B %Y" timestamp='<txp:custom_field name="Data_evento" />' />
and I get 01 gennaio 1970
Thanks
Offline
Re: Convert date to date
Try <txp:etc_date format="%d %B %Y" date='<txp:custom_field name="Data_evento" />' />
.
Offline
Re: Convert date to date
Nailed!!! Thanks!
Offline
Pages: 1