made DateValidator compatible with PHP >= 5.1.0, closes #143