Skip to content

Commit baf3d68

Browse files
authored
Merge pull request #244 from blesenechal/fix-date-filter
Fix api-platform/core issue #1326 (DateFilter before/after filters on before or equals/after or equals)
2 parents 46e3ca8 + f27decb commit baf3d68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/filters.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,12 @@ Previous URLs will return all offers for the product having the following IRI as
8888

8989
The date filter allows to filter a collection by date intervals.
9090

91-
Syntax: `?property[<after|before>]=value`
91+
Syntax: `?property[<after|before|strictly_after|strictly_before>]=value`
9292

9393
The value can take any date format supported by the [`\DateTime` constructor](http://php.net/manual/en/datetime.construct.php).
9494

95+
The `after` and `before` filters will filter including the value whereas `strictly_after` and `strictly_before` will filter excluding the value.
96+
9597
As others filters, the date filter must be explicitly enabled:
9698

9799
```yaml

0 commit comments

Comments
 (0)