cotonti.com : Shorter date https://www.cotonti.com Последние сообщения в теме Cotonti en Fri, 10 Oct 2025 03:39:09 -0000 esclkm Please Insert in tickets extrafields date stamp

]]>
сб, 22 окт 2011 11:35:09 -0000
Twiebie Can these callbacks also be used with custom extra fields?

I use a custom field named {LIST_ROW_AGENDADATE} for date/time in a list, and i've tried a callback like this:

{LIST_ROW_AGENDADATE_STAMP|cot_date('date_fulltext', $this)} 

but this results in the default time (Thursday, January 01, 1970) instead of the date that is set in the custom field.

Added 2 days later:

Anyone?

]]>
ср, 19 окт 2011 13:54:07 -0000
GHengeveld Added 1 hour later:

I wrote an article about it for future reference: How do I show dates and times in a different format?

]]>
ср, 12 окт 2011 12:25:18 -0000
Twiebie Tnx for the quick reply, Trustmaster!

]]>
ср, 12 окт 2011 05:37:17 -0000
Trustmaster Use callbacks:

{PAGE_ROW_DATE_STAMP|cot_date('d-m-Y', $this)}
or
{PAGE_ROW_DATE_STAMP|cot_date('date_full', $this)}
]]>
ср, 12 окт 2011 05:33:55 -0000
Twiebie Hi,

Is there a way to display a shorter date?

Currently in for example recentitems it outputs the time/date with {PAGE_ROW_DATE} and looks like 12-10-2011 09:00
Is it possible to display the date without the time behind it? (12-10-2011)

I've checked the tags via tpl_debug but couldn't find a solution.

Tnx.

]]>
ср, 12 окт 2011 05:13:50 -0000