function: detector → detect-date
function: detector → detect-end