I am trying to calculate time difference between 2 ZonedTime dates in scala, I am receiving dates in “2021-03-19T15:39:42.834248-07:00” format as a String. I need the difference in seconds between 2 dates in scala. Can some one please help on how to convert the string to zoned time and calculate the difference.
Thanks