Update datedetector.py