[opencms-dev] how to format dates

Shi Yusen shiys at langhua.cn
Tue Sep 5 14:40:41 CEST 2006


Hi Inigo,

SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yy");
String dateString = dateFormat.format(new Date(1157448300000L));

Regards,

Shi Yusen/Beijing Langhua Ltd.
--------------------------------------------------------------
Tel: 86-10-88514088, 88514099
Fax: 86-10-88514099
Email: shiys at langhua.cn
Website: http://www.langhua.cn/
--------------------------------------------------------------
 

-----邮件原件-----
发件人: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.
org] 代表 Inigo
发送时间: 2006年9月5日 18:23
收件人: opencms-dev at opencms.org
主题: [opencms-dev] how to format dates

Hello:
    I am trying to show some linklists in a web page. Everything works 
fine using the contentloop and the contentshow opencms tags, except for 
the fact that the dates are shown wrong. Instead of showing 09/05/06, 
OpenCMS shows 1157448300000.

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list