how to convert string to instant in java code example
Example: java string to instant
// Java program to demonstrate
// Instant.parse() method
import java.time.*;
public class GFG {
public static void main(String[] args)
{
// get Instant using parse method
Instant instant
= Instant.parse("2018-11-30T18:35:24.00Z");
// print result
System.out.println("Instant: "
+ instant);
}
}