# Date Filter Question

**URL:** <https://connective.celigo.com/t/date-filter-question/258>\
**Category:** Integrator.io\
**Tags:** filter, export, handlebars\
**Created:** [December 29, 2023, 7:30pm UTC](https://connective.celigo.com/t/date-filter-question/258 "2023-12-29T19:30:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [December 29, 2023, 7:30pm UTC](https://connective.celigo.com/t/date-filter-question/258/1 "2023-12-29T19:30:21Z")

</div>

I have been trying to set a date in the output filter for my export. I have set the field to "expression" and am using the correct handlebar (I think) so that it looks at the current date, but am not having much success and cant figure out what part I am not doing correctly. I think its simple, but just can't seem to get it! Any help is always appreciated!

 ![5301043caa20740200000001-ec7b19dee6494b6abb06ca8198d869e3.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/d/d68fc51c19c7be9308e93769f1f7dd79751914d1.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [December 30, 2023, 5:20pm UTC](https://connective.celigo.com/t/date-filter-question/258/2 "2023-12-30T17:20:08Z")

</div>

@daveguderian handlebar expressions do not currently work within output and input filters. See help article here on applying filters: [https://docs.celigo.com/hc/en-us/articles/360025927811-Apply-filters](https://docs.celigo.com/hc/en-us/articles/360025927811-Apply-filters).

You could:

1. Add a transformation 2.0 step first that adds a new field for the current date using handlebar expression {{timestamp "MM-DD-YYYY"}} and then use the output filter to compare the two fields. Make sure to set the data type to date-time.
2. Use a javascript output filter.

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [January 2, 2024, 3:22pm UTC](https://connective.celigo.com/t/date-filter-question/258/3 "2024-01-02T15:22:06Z")

</div>

Thanks Tyler! I used the first step and it worked great! Thanks so much!
