kunkasurendra Posted June 11, 2008 Share Posted June 11, 2008 Hi, I am getting date as a string from DB. I haveto display it in my report in format like 01 JUN 2008but it coming like 01 Jun 2008. I don't know how to display it in the above mentioned format in iReports? can any one help me out? Thanks in advance. Link to comment Share on other sites More sharing options...
bklawans Posted June 12, 2008 Share Posted June 12, 2008 Try adding ".toUpperCase()" to the end of the field expression. If you date field is called "datefield" make the field expression "$F{datefield}.toUpperCase()" -Barry Link to comment Share on other sites More sharing options...
wimpietje Posted April 3, 2012 Share Posted April 3, 2012 Hi ya'll,I'm having the same problem, except my date field is type date...in this case I cannot use: toUpperCase() Anybody know how to put my date in Uppercase?thx Link to comment Share on other sites More sharing options...
cbarlow3 Posted April 3, 2012 Share Posted April 3, 2012 You might try:new StringBuilder(new SimpleDateFormat("dd MMM yyyy").format($F{OPEN_DATE}).toUpperCase())(or whatever your date field is called, naturally).Hope that helps,Carl 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