0

How can I use localDate variables in JOptionPane constructor?

can we use date variables JOption class?

8th Jan 2017, 11:35 AM
AliGider
AliGider - avatar
1 Antwort
+ 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
27th Feb 2017, 8:09 AM
Senfman
Senfman - avatar