# Rotate value in array after 5 workings day

**URL:** <https://forum.kirupa.com/t/rotate-value-in-array-after-5-workings-day/227438>\
**Category:** Uncategorized\
**Created:** [May 30, 2007, 9:51am UTC](https://forum.kirupa.com/t/rotate-value-in-array-after-5-workings-day/227438 "2007-05-30T09:51:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [May 30, 2007, 9:51am UTC](https://forum.kirupa.com/t/rotate-value-in-array-after-5-workings-day/227438/1 "2007-05-30T09:51:12Z")

</div>

Hi all…

Okay here… I just have series of data store in array with value chunk out from dtbase…so my problem is I really have no idea how to rotate .the value in array…for 5 workings day meaning that excluding saturday and friday for every month…  
here’s the sample data array

```auto

var rotateShift:Array = ["worker1","worker3","worker6","worker7"];

```

At least guide/give me some ideas on how to achieve it…here’s are what a look like I after …

worker1 -monday --\> friday  
worker3 -monday --\> friday  
worker6 -monday --\> friday  
worker7 -monday --\> friday  
after last value it’ll rotate for the 1st value back…

I’m really hoping that someone will point me out/or at leastgive me some shed on light on it…

Thanks in advanced
