# Create recurring job to start at specific time and run every 2 hours

**URL:** <https://discuss.hangfire.io/t/create-recurring-job-to-start-at-specific-time-and-run-every-2-hours/2036>\
**Category:** question\
**Created:** [May 20, 2016, 3:39pm UTC](https://discuss.hangfire.io/t/create-recurring-job-to-start-at-specific-time-and-run-every-2-hours/2036 "2016-05-20T15:39:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muxstang](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Muxstang](https://discuss.hangfire.io/u/Muxstang)\
**Post date:** [May 20, 2016, 3:39pm UTC](https://discuss.hangfire.io/t/create-recurring-job-to-start-at-specific-time-and-run-every-2-hours/2036/1 "2016-05-20T15:39:22Z")

</div>

I am looking for a code example where one sets the start time for a job to a specific time and set to repeat every 2 hours.

---

<div class="post-metadata">

**Author:** ![Chris\_Jones](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@Chris\_Jones](https://discuss.hangfire.io/u/Chris_Jones)\
**Post date:** [July 4, 2016, 2:10pm UTC](https://discuss.hangfire.io/t/create-recurring-job-to-start-at-specific-time-and-run-every-2-hours/2036/2 "2016-07-04T14:10:05Z")

</div>

The Cron object you use to specify the delay has overloads to specify the start hour and minute.

---

<div class="post-metadata">

**Author:** ![kevnet](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kevnet](https://discuss.hangfire.io/u/kevnet)\
**Post date:** [July 8, 2016, 1:39pm UTC](https://discuss.hangfire.io/t/create-recurring-job-to-start-at-specific-time-and-run-every-2-hours/2036/3 "2016-07-08T13:39:07Z")

</div>

I have similar issue where I want to schedule a recurring job that will run daily, but don’t want it to start running until a time in the future. I’ve been googling around and couldn’t find a way of doing it in Hangfire. Does anyone have similar problem?

---

<div class="post-metadata">

**Author:** ![Sujan\_Maharjan](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sujan\_Maharjan](https://discuss.hangfire.io/u/Sujan_Maharjan)\
**Post date:** [April 18, 2017, 12:14pm UTC](https://discuss.hangfire.io/t/create-recurring-job-to-start-at-specific-time-and-run-every-2-hours/2036/4 "2017-04-18T12:14:41Z")

</div>

Hi Muxstang,

You could run a schedule job to start after your specific date and time . Then, in this job add your recurring job using **Cron.HourInterval(2).**

Thanks

---

<div class="post-metadata">

**Author:** ![Maaz\_Asif](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/maaz_asif/32/2042_2.png) [@Maaz\_Asif](https://discuss.hangfire.io/u/Maaz_Asif)\
**Post date:** [April 13, 2020, 10:50am UTC](https://discuss.hangfire.io/t/create-recurring-job-to-start-at-specific-time-and-run-every-2-hours/2036/5 "2020-04-13T10:50:34Z")

</div>

In case you haven’t found a solution, you can use a string in the following format to schedule the job:

“50 3 \* \* \*”  
Minute Hour Day Month Week

source: [https://crontab.guru/](https://crontab.guru/)
