Posts by David Messias • 13 points
1 post
-
0
votes3
answers131
viewsQ: Subtract 1 month from a date string in the dd/mm/yyyy format
String data = "09/04/2021"; String charComeco = data.substring(0, 2); String charMeio = data.substring(3, 5); Integer meioTratado2 = Integer.parseInt(charMeio); meioTratado2 -=1;…