have you looked into the timestamp parser in java util?