> For the complete documentation index, see [llms.txt](https://docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keyfax.biz/product-suite/admin/databox-examples/time-of-day.md).

# Time of day

Check if the current time is between a time range.

Helpful if you wish to apply a rule based on certain times of the day. For example changing the priority between the hours 4pm and 8pm.&#x20;

Conditional Expression (for normal working hours. (08:00 – 16:59)):

**AsDate Format(‘HH’) AsNum Between(8,16)**

<figure><img src="https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FlYEw6PCCiupXqfOdCTCK%2FTime%20of%20Day%20Expressions%204.4.7.png?alt=media&amp;token=690800de-c963-432e-b47e-3f69ac3464ff" alt=""><figcaption></figcaption></figure>

Please note, for the time slot between 9am and 10am the expression would be as follows:

**AsDate Format("HH") AsNum between (9,9)**

For half hours use the following:

**AsDate Format("HHmm") AsNum between (0800,1530)**
