[opencms-dev] How to change the date format?

Samir Djulancic Sam2266 at gmx.de
Thu Jan 25 10:01:40 CET 2007


Hi everyone, 

I postet this question on the OpenCms forum but no one answered it. I hope that someone here could help me..

I wanted to change the format of the date for the News and Events. I'm using the templateOne. I could imagine that it is not that difficult. But I just can't find the right way..

I found this at: \system\modules\org.opencms.frontend.templateone.modules\elements\list_news_right.jsp :

<%
	cms.setDate("dateString");
%>
<fmt:formatDate value="${date}" type="date" dateStyle="short" /> - <cms:contentshow element="Teaser" />




I could imagine if I could find a way to change or to add the "dateStyle" it could work. But where to do this??

The format now is like: 01/24/07
I need it like: 2007-01-24

I hope someone can help me.

Thanks a lot..
Cheers
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the opencms-dev mailing list