# Filter Data using Date Field

**URL:** <https://community.postman.com/t/filter-data-using-date-field/45665>\
**Category:** Help Hub\
**Tags:** collections, request\
**Created:** [March 27, 2023, 8:36pm UTC](https://community.postman.com/t/filter-data-using-date-field/45665 "2023-03-27T20:36:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maintenance-pilot-72](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@maintenance-pilot-72](https://community.postman.com/u/maintenance-pilot-72)\
**Post date:** [March 27, 2023, 8:36pm UTC](https://community.postman.com/t/filter-data-using-date-field/45665/1 "2023-03-27T20:36:20Z")

</div>

I need last 2 years data based on the field called Submit Date (It’s in the output), below is the output from rest call,

```auto
{
    "entries": [
        {
            "values": {
                "instance ID": "090909090",
                "PersonID": null,
                "Submit Date": "2023-03-24T19:57:53.000+0000",
                "Assigned To": null,
                "Last Modified By": "jackl",
                "Last Modified Date": "2023-03-27T14:44:38.000+0000",
                "Change Status": "Pending",
                "ModifiedByCheck": null,
                "Short Description": ".",
                "Copy Task Phase Management Rule": "No",
                "Prod Categorization Tier 3": null,
                "AllowPending": null,
                "Product Name": null,
                "Prod Categorization Tier 1": null
				}
			}
		]
	}

```

API Call. I passed below parameter to query data but it’s not working.

```auto
(http://10.2.4.4:8080/api/neow/v1.0/entry/Change?Submit%20Date[after]=2021-03-01&Submit%20Date[before]=2023-03-01)

```

Please help, how can i do that.

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [March 27, 2023, 9:18pm UTC](https://community.postman.com/t/filter-data-using-date-field/45665/2 "2023-03-27T21:18:08Z")

</div>

Hi @maintenance-pilot-72

Is the API configured to accept the ‘Submit%20Date[after]’ and ‘Submit%20Date[before]’ parameters?

Is there any documentation for the API you are calling?

Is that example all that comes back from the API or do you get more items in your ‘entries’ array?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 21, 2024, 11:55am UTC](https://community.postman.com/t/filter-data-using-date-field/45665/3 "2024-02-21T11:55:50Z")

</div>

Closed on February 21, 2024, 11:55am UTC


