Logo

Programming-Idioms

History of Idiom 184 > diff from v6 to v7

Edit summary for version 7 by programming-idioms.org:
[Java] +DocURL

Version 6

2019-08-31, 05:55:09

Version 7

2019-09-01, 08:59:37

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

Imports
java.time.LocalDate
Imports
import java.time.LocalDate;
Code
LocalDate t = LocalDate.now().plusDays(1)
Code
LocalDate t = LocalDate.now().plusDays(1);
Comments bubble
Java 8
Comments bubble
Java 8
Doc URL
https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html#plusDays-long-