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

subtracting n days from java.sql.timestamp


lukas.habermayr

Recommended Posts

Hi all,

I'm trying to substract n days from the current date. I'd like to use this in my query to filter results older than NOW()-n days.
The column in the database is of type timestamp. I guess it's best to do this i the query but I haven't found any working solution yet...
All the other threads are using java.util.date as type.

Any suggestions. 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...