I'm having a code that I want to check if the date is greater than 30 days with the JodaTime, but putting in the console output the value is not assigned. I have seen the following: link
And I did the same idea, but it still did not work.
Follow the code:
DateTime dataEnvioPrevistoMaisTrintaDias = new DateTime();
dataEnvioPrevistoMaisTrintaDias = peg.getDataEnvioPrevisto().plus(30);
System.out.println("Data Envio : "+ peg.getDataEnvioPrevisto());
System.out.println("Data Envio + 30 : "+dataEnvioPrevistoMaisTrintaDias);
Console output:
Date Submitted: 2017-09-29T00: 00: 00.000-03: 00
Date Upload + 30: 2017-09-29T00: 00: 00.030-03: 00