# Filter between 2 dates

**URL:** <https://forums.knack.com/t/filter-between-2-dates/6613>\
**Category:** API & Custom Code\
**Created:** [October 29, 2019, 8:59pm UTC](https://forums.knack.com/t/filter-between-2-dates/6613 "2019-10-29T20:59:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HankPantie51808](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@HankPantie51808](https://forums.knack.com/u/HankPantie51808)\
**Post date:** [October 29, 2019, 8:59pm UTC](https://forums.knack.com/t/filter-between-2-dates/6613/1 "2019-10-29T20:59:05Z")

</div>

I need to retrieve all records that occur between 2 dates.

my date field is field 425

2 questions

1. do i query field\_425 OR field\_425\_raw

2. is this the proper syntax for passing a "start" date

array (   
'field' =\> 'field\_425',  
'operator' =\> 'is after 10/21/2019'   
),

thank you

---

<div class="post-metadata">

**Author:** ![HankPantie51808](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@HankPantie51808](https://forums.knack.com/u/HankPantie51808)\
**Post date:** [October 29, 2019, 9:04pm UTC](https://forums.knack.com/t/filter-between-2-dates/6613/2 "2019-10-29T21:04:34Z")

</div>

hope this helps someone. should be

array ( // DATES  
'field' =\> 'field\_425',  
'operator' =\> 'is after',  
'value' =\> '10/21/2019'   
),  
array ( // DATES  
'field' =\> 'field\_425',  
'operator' =\> 'is before',  
'value' =\> '10/25/2019'  
),
