2005 IR Help Posted September 1, 2006 Share Posted September 1, 2006 By: CSJakharia - csplrj Show only Week Day from a Date 2005-03-25 01:07 Software -------------- IReport 0.3.1 Problem ------------ I just want to show the week day of the date given How to do that I mean the date given is 01/03/2004 I want to display in report Tuesday So what is the way out?? Thanks in advance CSJakharia By: xpert - jcox00 RE: Show only Week Day from a Date 2005-03-28 12:26 You can do this by using a SimpleDateFormat. Change the Variable Class Type to String and then make the value - new SimpleDateFormate("E").format($F{date}). If $F{date} is a String rather than a java.util.Date, you'll need it to look something like this: new SimpleDateFormat(new SimpleDateFormat().parse($F{date})) where $F{date} is a String like "1/31/2004". By: CSJakharia - csplrj RE: Show only Week Day from a Date 2005-03-30 02:17 Thanks it worked Now I got that We can try any Normal Java Code as it works as a Formula Thanks again Bye for now CSJakharia Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now