Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Date in text of an article

Answered
Not marked as answered yet

Forums  >  Community edition  >  Date in text of an article


Author Date in text of an article
Rick.Bouman


Posts: 1

Posted: 25-02-2010 08:57

Dear users,

I want to place the current date in een WebManager Article.
How can i do that? Is thee some HTML code that can fix this in Webmanager?

I want to put the date on a few places in the article, not just once.

I hope someone can help me,
Kind regards,
RIck

johnd



Posts: 36

Posted: 25-02-2010 11:43

Hello Rick,

when you mean you want to use the "current date" in your JSP (rendering your article), you can use:

<jsp:useBean id="now" class="java.util.Date" ></jsp>
<fmt:formatDate value="${now}" pattern="yyyy-MM-dd" ></fmt>



Greetings,

John

williamb



Posts: 310

Posted: 25-02-2010 23:30

Please remember that this will not be a 'live' date if your server uses caching, and you're not presenting the date within an SSI or something.

It could be, in that case, better to use the XSL or javascript options to present a date.

johnd



Posts: 36

Posted: 26-02-2010 11:45

William is right about that.

So Rick... what's your goal? What do you want to do?

Back to top

New message: "Date in text of an article"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.