# How to calculate days difference between two Dates variable & display the result in the text field?

**URL:** <https://community.ofelia.com/t/how-to-calculate-days-difference-between-two-dates-variable-display-the-result-in-the-text-field/7822>\
**Category:** Q&A\
**Created:** [27 September 2016 07:47 UTC](https://community.ofelia.com/t/how-to-calculate-days-difference-between-two-dates-variable-display-the-result-in-the-text-field/7822 "2016-09-27T07:47:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mainamaan77](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@mainamaan77](https://community.ofelia.com/u/mainamaan77)\
**Post date:** [27 September 2016 07:47 UTC](https://community.ofelia.com/t/how-to-calculate-days-difference-between-two-dates-variable-display-the-result-in-the-text-field/7822/1 "2016-09-27T07:47:47Z")

</div>

I am trying to calculate difference between two dates and display the days difference in text field using Bonita BPM Community 7 Version 7.3.1. I am new to Bonita give me some idea that on which event i have to calculate Date difference and display in text field. There is no onselect like events for input type Date in Bonita?

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [27 September 2016 20:36 UTC](https://community.ofelia.com/t/how-to-calculate-days-difference-between-two-dates-variable-display-the-result-in-the-text-field/7822/2 "2016-09-27T20:36:25Z")

</div>

See: [http://community.ofelia.com/node/24641#node-24646](http://community.ofelia.com/node/24641#node-24646)

Hope this helps

regards  
Seán

_PS: As this reply answers your question, please mark a resolved by clicking the tick mark on the left._
