I\'m saving twitter tweets in my database with spring JPA Repositories. The date of the tweet is saved as Datetime in the MySQL db. Now I want to delete all tweets that are
Take the time from the old date and subtract it from the current one then you just have to compare it with the duration of one year.
Maybe you should add something for leap-years.