SyntaxFix
Write A Post
Hire A Developer
Questions
In Java 8 you can do this:
Instant inst = Instant.parse("2018-12-30T19:34:50.63Z"); // subtract 10 Days to Instant Instant value = inst.minus(Period.ofDays(10)); // print result System.out.println("Instant after subtracting Days: " + value);