If I run the following program, which parses two date strings referencing times 1 second apart and compares them:
public static void main(String[] args) throw
Instead of converting each date, you can use the following code:
long difference = (sDt4.getTime() - sDt3.getTime()) / 1000; System.out.println(difference);
And then see that the result is:
1