-1

My app uses Joda Time to save the data at midnight. (with LocalDate and sharedpref)

But for a school demonstration, I would like to create a button (very simple) to advance the date of ONE day. To show that the data are recorded.

(I have already created the button in my XML file, it stay only Java)

How should I do it?

Thank you :D (i'm a beginner)

A.Pelido
  • 1
  • 1

1 Answers1

0

try this

DateTime dateTime = new DateTime(date);
dateTime = dateTime.plusDays(1);
Ritu Suman Mohanty
  • 734
  • 1
  • 6
  • 15