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