How can I precise that a property of model should be validated as datetime or time or telephone number
How can I precise that a property of model should be validated as datetime or time or telephone number
You can use "date" core validator for date, time and datetime.
http://www.yiiframework.com/doc-2.0/guide-tutorial-core-validators.html#date
For telephone number, I think "match" core validator is appropriate.
http://www.yiiframework.com/doc-2.0/guide-tutorial-core-validators.html#match
And also take a look at this for general guidance:
http://www.yiiframework.com/doc-2.0/guide-input-validation.html