Infinity Date Validation for PostgreSQL

The PostgreSQL database allows dates to be infinity and -infinity as well as a regular date. How can I validate this type of date in the rules of a Yii2 model? Can I extend Yii’s date validator, or has someone written this validator?

Thanks!

Bill