Skip to content

Commit a472b6e

Browse files
adnen-chouibijaviereguiluz
authored andcommitted
[Validator] Fix a valid Date and Time constraint format
1 parent 362f027 commit a472b6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reference/constraints/Date.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Date
22
====
33

44
Validates that a value is a valid date, meaning a string (or an object that can
5-
be cast into a string) that follows a valid ``YYYY-MM-DD`` format.
5+
be cast into a string) that follows a valid ``Y-m-d`` format.
66

77
========== ===================================================================
88
Applies to :ref:`property or method <validation-property-target>`

reference/constraints/Time.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Time
22
====
33

44
Validates that a value is a valid time, meaning a string (or an object that can
5-
be cast into a string) that follows a valid ``HH:MM:SS`` format.
5+
be cast into a string) that follows a valid ``H:i:s`` format.
66

77
========== ===================================================================
88
Applies to :ref:`property or method <validation-property-target>`

0 commit comments

Comments
 (0)