Convert date regex to date before comparison. Closes #503.

Fixes #503.