Browse Source

typo in DateValidator docs

9899-cache-bug
Carsten Brandt 9 years ago
parent
commit
cd84f6c4c5
  1. 2
      framework/validators/DateValidator.php

2
framework/validators/DateValidator.php

@ -52,7 +52,7 @@ class DateValidator extends Validator
* is used to parse the input value. In all other cases the PHP [DateTime](http://php.net/manual/en/datetime.createfromformat.php) class
* is used. The IntlDateFormatter has the advantage that it can parse international dates like `12. Mai 2015` or `12 мая 2014`, while the
* PHP parser is limited to English only. The PHP parser however is more strict about the input format as it will not accept
* `12.05.05` for the format `php:d.m.Y`, but the IntlDateFormatter will accept it for the format `dd-MM-yyyy`.
* `12.05.05` for the format `php:d.m.Y`, but the IntlDateFormatter will accept it for the format `dd.MM.yyyy`.
* If you need to use the IntlDateFormatter you can avoid this problem by specifying a [[min|minimum date]].
*/
public $format;

Loading…
Cancel
Save