# How to manipulate dates in Flowable open source?

**URL:** <https://forum.flowable.org/t/how-to-manipulate-dates-in-flowable-open-source/8701>\
**Category:** Flowable Engine\
**Created:** [December 3, 2021, 8:48am UTC](https://forum.flowable.org/t/how-to-manipulate-dates-in-flowable-open-source/8701 "2021-12-03T08:48:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![billerby](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/billerby/32/850_2.png) [@billerby](https://forum.flowable.org/u/billerby)\
**Post date:** [December 9, 2021, 1:29pm UTC](https://forum.flowable.org/t/how-to-manipulate-dates-in-flowable-open-source/8701/4 "2021-12-09T13:29:48Z")

</div>

Well I would do it in a script-task and use groovy as the language. That way you could do it in java. (which I prefer). Do manipulations you need and then set process variables by calling execution.setVariable(“moreThan10Days”, true); for example. Then make a juel-expression where you need it for example as a condition on a gateway to choose which path to go in the process.

I’ll post some ideas here…

 ![diagram](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/9/9551bfb78a8b43a1e8cc960d2a1b4a946cac7f20.png)  
 ![condition](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/a/a4756b149a30ca98b414c3bb32c84886cf3defc1.png)

 ![script-task](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/d/d89f16a0b1614953caec526e01d22f6b4a414b30.jpeg)

---

_[View the full topic](https://forum.flowable.org/t/how-to-manipulate-dates-in-flowable-open-source/8701)._
