# Get date of monday's previous week

**URL:** <https://forum.inductiveautomation.com/t/get-date-of-mondays-previous-week/20532>\
**Category:** General Discussion\
**Created:** [November 5, 2018, 2:43pm UTC](https://forum.inductiveautomation.com/t/get-date-of-mondays-previous-week/20532 "2018-11-05T14:43:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [November 5, 2018, 2:43pm UTC](https://forum.inductiveautomation.com/t/get-date-of-mondays-previous-week/20532/1 "2018-11-05T14:43:41Z")

</div>

Hi,

How can I get the date of monday’s previous week using expression functions ?  
For exemple, today’s date is 05-oct-2018 15:30. My result should be 29-oct-2018 00:00:00.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 5, 2018, 3:22pm UTC](https://forum.inductiveautomation.com/t/get-date-of-mondays-previous-week/20532/2 "2018-11-05T15:22:01Z")

</div>

I believe you mean today is November 5th, not October. Anyways, try this:

```auto
dateArithmetic(dateArithmetic(midnight(now(0)), -(getDayOfWeek(now(0))-2), "day"), -7, "day")

```

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [November 8, 2018, 4:07pm UTC](https://forum.inductiveautomation.com/t/get-date-of-mondays-previous-week/20532/3 "2018-11-08T16:07:21Z")

</div>

ok it’s working.  
Thanks
