I need to subtract a date like 1/26/2015
from a date-time like 2016-01-27T01:10:57.569000+00:00
. From what I've read converting both to distance in milliseconds from Epoch and then subtracting is the easiest way. I've tried using various methods, but all the methods seem to say 2016-01-27T01:10:57.569000+00:00
is invalid data. The method .getTime()
works great for the 1/26/2015
format, but it can't read the 2016-01-27T01:10:57.569000+00:00
.
How does one go about getting the date/time UTC time into milliseconds?