# date filter on contact list api

**URL:** <https://community.hubspot.com/t/date-filter-on-contact-list-api/95650>\
**Category:** APIs & Integrations\
**Tags:** developer, crm\
**Created:** [December 7, 2023, 11:37pm UTC](https://community.hubspot.com/t/date-filter-on-contact-list-api/95650 "2023-12-07T23:37:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peeyush81](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@peeyush81](https://community.hubspot.com/u/peeyush81)\
**Post date:** [December 7, 2023, 11:37pm UTC](https://community.hubspot.com/t/date-filter-on-contact-list-api/95650/1 "2023-12-07T23:37:23Z")

</div>

Hi,

i am unable to find a good example on how to apply a date time filter when creating a contact list -

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-lists-v3%2Fguide)**

Any example would be helpful

There are some notes on filters here -

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-lists-v3%2Fguide)**

E.g. -

```lia-code-sample
{
 "filterType": "PROPERTY",
 "property": "createdate",
 "operation": {
 "propertyType": "datetime",
 "operator": "IS_EQUAL_TO",
 "timestamp": 1504703360618
 }
}

```

the above filter does not work. It keeps getting saved as -

```lia-code-sample
"filters": [
 {
 "filterType": "PROPERTY",
 "property": "createdate",
 "operation": {
 "propertyType": "datetime",
 "operator": "IS_BEFORE",
 "timestamp": 0,
 "defaultValue": null,
 "includeObjectsWithNoValueSet": false,
 "requiresTimeZoneConversion": true,
 "operationType": "datetime",
 "operatorName": "IS_BEFORE"
 },
 "frameworkFilterId": null
 }

```

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 8, 2023, 6:23pm UTC](https://community.hubspot.com/t/date-filter-on-contact-list-api/95650/2 "2023-12-08T18:23:01Z")

</div>

Hey, @peeyush81 👋 Welcome to our community! Were you able to make any progress here? If not, I will get an example running on my end and share here.

Best,

Jaycee
