0
How can I use localDate variables in JOptionPane constructor?
can we use date variables JOption class?
1 Answer
+ 3
see http://www.java2s.com/Tutorials/Java/java.time/LocalDate/index.htm
You can include instance variables in your JOptionPane object like:
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
LocalDate today = LocalDate.now();
LocalDate tomorrow = today.plus(1, ChronoUnit.DAYS);
LocalDate yesterday = tomorrow.minusDays(2);
Does this help you? If not, please try to be a bit more precise what your question is aiming at.
Cheers,
Senfman