Java get yesterday's DATE

Instant now = Instant.now();
Instant yesterday = now.minus(1, ChronoUnit.DAYS);

Comments