Jump to content
We've recently updated our Privacy Statement, available here ×

Add day to date in expression editor


DawnW

Recommended Posts

Hello,

I am using Jaspersoft Studio 6.12.2. I have a variable of class java.sql.date. In the expression editor for that  variable, I need to add one day to the current date. I find a lot of information in posts but none of it works! Can someone please help with the proper  syntax? Please don't refer me to a link because I've probably already been there. 

Thank you in advance for your help!

Dawn

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

DATEFORMAT(NOW( ),"MM/dd/yyyy").setday(DATEFORMAT(  org.apache.commons.lang3.time.DateUtils.addDays(new java.util.Date(),1)   ,"MM/dd/yyyy”))

 

This -> org.apache.commons.lang3.time.DateUtils.addDays(new java.util.Date(),1)    adds one day to the current date (equivalent of NOW()) using one of our imported libraries.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...