I parsed a string to a date:
val deathTime = "2019-03-14 05:22:45"
val dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
val deathDate = new java.sql.Date(dateFormat.parse(deathtime).getTime)
Now, I want to subtract 30 days from deathDate. How to do that? I have tried
deathDate.minusDays(30)
It does not work.