Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Date format
Date format [message #221463] Tue, 27 February 2007 23:19 Go to next message
Eclipse UserFriend
Originally posted by: dyang.chestnet.org

Hi All

When I used
this.text=reportContext.getParameterValue("date").toString()
in onPrepare event. I got Sun Dec 31 00:00:00 CST 2006 for this.text.
I need to convert it into a format(12/31/2006). Should I use java
Dataformate class? Are there any function to do it?

Thanks!
Dan
Re: Date format [message #221530 is a reply to message #221463] Wed, 28 February 2007 06:11 Go to previous message
Faith Shan is currently offline Faith ShanFriend
Messages: 1
Registered: July 2009
Junior Member
Try this:

java.text.DateFormat.getDateInstance(java.text.DateFormat.SH ORT,reportContext.getLocale()).format(XXX)
Previous Topic:Parameter in stored procedure
Next Topic:Strange warning at design session creation
Goto Forum:
  


Current Time: Wed Jul 03 17:19:32 GMT 2024

Powered by FUDForum. Page generated in 0.03616 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top