axel.vandencampnatuurpunt Posted October 14, 2016 Share Posted October 14, 2016 I've got a couple of date fields in my report that come out as a date time with the time being 00:00 ("dd/MM/yy hh:mm").Can I get rid of the time part and format my date field as ("dd/MM/yyyy").I've been looking for answer, but haven't found one yet. Thanks for all the help I can get.cheers,Axel Link to comment Share on other sites More sharing options...
Solution nardao Posted October 14, 2016 Solution Share Posted October 14, 2016 Jasperserver is based on Java, basically you can use all Java "comands" and methods inside the APIs.Google java.util.date to see what you can use.new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format( $F{my_date}); Link to comment Share on other sites More sharing options...
madankumar688 Posted October 15, 2016 Share Posted October 15, 2016 Hi,you can use pattern option for textfield.In that option u can select date and u can choose which ever format u wantMadan. 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