Skip to content

Commit fb8b52f

Browse files
Update README.md
1 parent 851c4af commit fb8b52f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Read the documentation for the security module at [#security-validators](#securi
8888
* **time***hh:mm*
8989
* **birthdate***yyyy-mm-dd, not allowing dates in the future or dates that's older than 122 years (format can be customized, more information below)*
9090

91-
Read the documentation for the date module at [http://formvalidator.net/#date-validators](http://formvalidator.net/#date-validators)
91+
Read the documentation for the date module at [#date-validators](#date-validators)
9292

9393
### Module: location
9494
* **country**
@@ -725,6 +725,30 @@ By using the validator <code>letternumeric</code> you can validate that given in
725725
<input type="text" data-validation="alphanumeric" data-validation-allowing="-_">
726726
```
727727

728+
## Date validators
729+
730+
### Birthdate
731+
732+
This validator is the same as the default <a href="#default-validators_dates">date validator</a> except that it only allows past dates and dates that is not older than 120 years.
733+
734+
```
735+
<!-- Validate birth date formatted yyyy-mm-dd -->
736+
<input type="text" data-validation="birthdate">
737+
738+
<!-- Validate birthdate formatted yyyy-mm-dd but dont require leading zeros -->
739+
<input type="text" data-validation="birthdate" data-validation-require-leading-zero="false">
740+
741+
<!-- Validate birth date formatted dd/mm/yyyy -->
742+
<input type="text" data-validation="birthdate" data-validation-format="dd/mm/yyyy">
743+
```
744+
745+
## Time
746+
747+
```
748+
<!-- Validate time formatted HH:mm -->
749+
<input type="text" data-validation="time">
750+
```
751+
728752
## Changelog
729753

730754
#### 2.3.19

0 commit comments

Comments
 (0)