# How get working day without weekend

**URL:** <https://forum.knime.com/t/how-get-working-day-without-weekend/33468>\
**Category:** KNIME Analytics Platform\
**Created:** [June 4, 2021, 3:36am UTC](https://forum.knime.com/t/how-get-working-day-without-weekend/33468 "2021-06-04T03:36:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Banksy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/ad7895/32.png) [@Banksy](https://forum.knime.com/u/Banksy)\
**Post date:** [June 4, 2021, 3:36am UTC](https://forum.knime.com/t/how-get-working-day-without-weekend/33468/1 "2021-06-04T03:36:22Z")

</div>

Hi everyone,  
I want to get the data of the day before work by date&time filter node, but how can I skip the day off?  
Thanks.

---

<div class="post-metadata">

**Author:** ![julian.bunzel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@julian.bunzel](https://forum.knime.com/u/julian.bunzel)\
**Post date:** [June 4, 2021, 7:03am UTC](https://forum.knime.com/t/how-get-working-day-without-weekend/33468/2 "2021-06-04T07:03:39Z")

</div>

Hey @Banksy,

you can extract fields (e.g. the name of the day of the week) using the [Extract Date&Time Fields](https://kni.me/n/1IV13SZKupKfvBzO) node. After you have done this you can use a Row Filter to filter Saturdays & Sundays.

Best,  
Julian

---

<div class="post-metadata">

**Author:** ![Banksy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/ad7895/32.png) [@Banksy](https://forum.knime.com/u/Banksy)\
**Post date:** [June 4, 2021, 8:18am UTC](https://forum.knime.com/t/how-get-working-day-without-weekend/33468/3 "2021-06-04T08:18:13Z")

</div>

Hi @julian.bunzel,  
I’m so sorry, I didn’t express myself very clearly.I want to use auto-run Date&Time-based Row Filter node without open KNIME. Now this node only one day before the execution date is available.  
How do I automatically skip a day off?

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/3/1/31db92a79ccc6fc1838485a5df62f153013bdd9f.png)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [June 7, 2021, 11:24am UTC](https://forum.knime.com/t/how-get-working-day-without-weekend/33468/4 "2021-06-07T11:24:10Z")

</div>

Hello @Banksy,

you can not automatically skip non working or days off. However you can build logic which takes current execution date (you can use [Date&Time Configuration](https://kni.me/n/TnYixcG9Gn7G9uV9) node), calendar with working and non working days (you should build this calendar yourself but should be issue) and based on it get records from previous working day.

This workflow can give you some ideas:

> **[Counting Target Date – ipazin](https://hub.knime.com/ipazin/spaces/Public/latest/2019_11_26_Counting_Target_Date~IDNKWLRCdtAy1yzS)**
>
> This workflow calculates tagret date from input data which contains date and number of working days to desired target date. Bottom branch creates "database" of…

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![Banksy](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/ad7895/32.png) [@Banksy](https://forum.knime.com/u/Banksy)\
**Post date:** [June 16, 2021, 8:30am UTC](https://forum.knime.com/t/how-get-working-day-without-weekend/33468/5 "2021-06-16T08:30:00Z")

</div>

Hello @ipazin，

Thank you so much, I will try it.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2021, 8:30am UTC](https://forum.knime.com/t/how-get-working-day-without-weekend/33468/6 "2021-06-23T08:30:51Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
