convert time strings to military time