fix a problem with matching dates, caused trouble for sql queries.
only match a date if it matches the full string
merge from lp:~tpokorra/openpetraorg/dev0002907_opendocument_fixes