miao.gao.2010 Posted September 10, 2014 Share Posted September 10, 2014 I have a jasper report that need to display date. When I get the date field and preview my report, the date displays as null. I ran the same sql query in my database phpmyadmin, and it works. Please enlighten me how I can display the date datatype properly on report. Thank you Link to comment Share on other sites More sharing options...
anbuselvans Posted September 10, 2014 Share Posted September 10, 2014 You can use "Current Date" from the Pallet if you wish to show current date.Just need to drag and drop at desired location.If you need a custome date to display then "Add Parameter" for java.util.Date and use it in the query.Hope it helps. Link to comment Share on other sites More sharing options...
hozawa Posted September 10, 2014 Share Posted September 10, 2014 Just drag a Text Field and enter "new java.util.Date()" as the expression. Link to comment Share on other sites More sharing options...
miao.gao.2010 Posted September 11, 2014 Author Share Posted September 11, 2014 The Date I want to put is no current date. I have one field in my database that stores some date information, e.g. date of birth, date or registration. I want to display that properly on the report. Currently it appears to be null 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