Can't understand, how can I subtract one day from a `LocalDate`? There's a `minus()` function that t...
v
Can't understand, how can I subtract one day from a
LocalDate
? There's a
minus()
function that takes
LocalDate
as an argument. But I can't understand, what should I pass in to subtract a particular period of time from it?
i
You can use
date.plus(-1, DateTimeUnit.DAY)
. We're currently adding
minus
counterpart for that.
👍 1
v
Thanks, Ilya!