I have date and time in string format in one of my models.
"startTime": "2022-10-19T14:31:22+00:00"
How can I convert it to long format in Java?
I tried using
'Long.valueOf(startTime)' and 'Long.parseLong(startTime)'
are two functions.
but in both I am getting an exception.
"at the java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)"