# How to gey the date of a week day

**URL:** <https://forum.servoy.com/t/how-to-gey-the-date-of-a-week-day/14060>\
**Category:** Classic Servoy\
**Created:** [May 28, 2011, 4:03pm UTC](https://forum.servoy.com/t/how-to-gey-the-date-of-a-week-day/14060 "2011-05-28T16:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [May 28, 2011, 4:03pm UTC](https://forum.servoy.com/t/how-to-gey-the-date-of-a-week-day/14060/1 "2011-05-28T16:03:12Z")

</div>

Anyone knows how to get the date of a given day in a week of a year? For example what is the date of the monday in week 40 of year 2011  
Thanks

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [May 28, 2011, 4:45pm UTC](https://forum.servoy.com/t/how-to-gey-the-date-of-a-week-day/14060/2 "2011-05-28T16:45:06Z")

</div>

Too lazy to think about it now… ![:)]( "Smile")  
But download the DateUtils plugin from Dr Maison, it has a lot of nice features and it’s free: [Servoy-Plugins.de - DateUtils plugin](http://www.servoy-plugins.de/plugins/dateutils/dateutils-plugin.html).

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [May 28, 2011, 5:43pm UTC](https://forum.servoy.com/t/how-to-gey-the-date-of-a-week-day/14060/3 "2011-05-28T17:43:23Z")

</div>

When using Greg Pierce’s [mod\_datejs](https://www.servoyforge.net/projects/mod-datejs) you can use the following syntax:

```auto
var _dDate = new Date().moveToDayOfWeek(1).setWeek(40);

```

Mod\_datejs is based on the open source [datejs](http://www.datejs.com/) library.  
Look [here](http://code.google.com/p/datejs/wiki/APIDocumentation) for the full API.

Hope this helps.
