# How we could pass current date to Post request body in Matillion

**URL:** <https://matillioncommunity.discourse.group/t/how-we-could-pass-current-date-to-post-request-body-in-matillion/1820>\
**Category:** Matillion ETL\
**Created:** [July 21, 2022, 5:03pm UTC](https://matillioncommunity.discourse.group/t/how-we-could-pass-current-date-to-post-request-body-in-matillion/1820 "2022-07-21T17:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pagarwal1570163022748](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/pagarwal1570163022748/32/1005_2.png) [@pagarwal1570163022748](https://matillioncommunity.discourse.group/u/pagarwal1570163022748)\
**Post date:** [July 21, 2022, 5:03pm UTC](https://matillioncommunity.discourse.group/t/how-we-could-pass-current-date-to-post-request-body-in-matillion/1820/1 "2022-07-21T17:03:46Z")

</div>

We are using API Query for a POST request and all we need to know is how in Matillion we could set current date in Post Body so that every dat when it runs it automatically gets current day data.

---

<div class="post-metadata">

**Author:** ![pagarwal1570163022748](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/pagarwal1570163022748/32/1005_2.png) [@pagarwal1570163022748](https://matillioncommunity.discourse.group/u/pagarwal1570163022748)\
**Post date:** [July 21, 2022, 7:20pm UTC](https://matillioncommunity.discourse.group/t/how-we-could-pass-current-date-to-post-request-body-in-matillion/1820/2 "2022-07-21T19:20:02Z")

</div>

[@Bryan](https://matillioncommunity.discourse.group/u/Bryan)​ any thoughts ?

---

<div class="post-metadata">

**Author:** ![SB699925](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/sb699925/32/1180_2.png) [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)\
**Post date:** [July 25, 2022, 4:22am UTC](https://matillioncommunity.discourse.group/t/how-we-could-pass-current-date-to-post-request-body-in-matillion/1820/3 "2022-07-25T04:22:00Z")

</div>

Couldn't you setup a job variable and pass that into your api query? You might need to create the api query component with a dummy value and then change that into an input variable using advanced mode...
