# Get next execution time when using cron schedule

**URL:** <https://community.temporal.io/t/get-next-execution-time-when-using-cron-schedule/948>\
**Category:** Community Support\
**Created:** [November 11, 2020, 1:58am UTC](https://community.temporal.io/t/get-next-execution-time-when-using-cron-schedule/948 "2020-11-11T01:58:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mostafacs](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/mostafacs/32/351_2.png) [@mostafacs](https://community.temporal.io/u/mostafacs)\
**Post date:** [November 11, 2020, 1:58am UTC](https://community.temporal.io/t/get-next-execution-time-when-using-cron-schedule/948/1 "2020-11-11T01:58:57Z")

</div>

I’m scheduled workflow with cron scheduler and I want to get the next execution time.  
Is there any way to get using temporal java client or should i user external libraries like `cron-utils` ?

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [November 11, 2020, 2:12am UTC](https://community.temporal.io/t/get-next-execution-time-when-using-cron-schedule/948/2 "2020-11-11T02:12:31Z")

</div>

If you want more control over cron jobs we recommend writing your own cron workflow logic. Here is a [HelloPeriodic Java sample](https://github.com/temporalio/samples-java/blob/master/src/main/java/io/temporal/samples/hello/HelloPeriodic.java) that does this.
