how to subtract localdatetime in java

54

how to subtract localdatetime in java -

LocalDateTime from = ... ;
LocalDateTime to = ... ;
Duration duration = Duration.between(from, to);

Comments

Submit
0 Comments