Convert date regex to date before comparison. Closes #503.
Change string convertion to toString.

 And add missing semicolon.
Change required to clone to better describe the test
Merge pull request #505 from fampinheiro/master

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