Answers for "java date addition"

2

add days to date java

LocalDate date=LocalDate.now();
date.addDays(1);
System.out.println(date);
Posted by: Guest on April-16-2021
1

java date add hours

LocalDateTime dateTime=LocalDateTime.now();//or whatever
dateTime.addHours(2);
Posted by: Guest on April-15-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language