Convert date regex to date before comparison.