SS in SimpleDateFormat is milliseconds. You have 6739 milliseconds, which means you are adding an extra 6.7 seconds onto your time. Perhaps you can truncate the 6739 to 673 (or if you prefer, round it to 674) so it can be parsed correctly as milliseconds.