flexible on date detection