java get yesterday code example
Example: java yesterday date
LocalDate today = LocalDate.now();
LocalDate yesterday = today.minusDays(1);
// In string format
LocalDate today = LocalDate.now();
String yesterday = (today.minusDays(1)).format(DateTimeFormatter.ISO_DATE);