Hello Christian,

you can use a standard converter

for example:

<tc:out value="#{mybean.startTimestamp}" >
  <f:convertDateTime pattern="MM/dd/yyyy />
</tc:out>

See:
http://java.sun.com/javaee/5/docs/tutorial/doc/JSFPage7.html#wp127641

There is one issue with the dateTimeConverter, the default TimeZone of the dateTimeConverter is GMT not System default.

See this thread:

http://mail-archives.apache.org/mod_mbox/myfaces-users/200509.mbox/[EMAIL 
PROTECTED]

Description:

http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/convert/DateTimeConverter.html

the 1.2 docs clarify the usage of the timezone.

Regards

Bernd

[EMAIL PROTECTED] wrote:
Hi
I'm using Tobago and have a Bean with an Timestamp-Attribute.
Now I want the timestamp to be displayed in a the "MM/dd/yyyy"-format.

<tc:out value="#{mybean.startTimestamp}" >

How can I format this timestamp? Is there a converter or anything else?


kind regards
Christian

Reply via email to