Skip to main content



      Home
Home » Archived » BIRT » Date format
Date format [message #221463] Tue, 27 February 2007 18: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 01:11 Go to previous message
Eclipse UserFriend
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: Fri May 09 18:30:30 EDT 2025

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

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

Back to the top