Can't understand, how can I subtract one day from ...
# kotlinx-datetime
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!