View Single Post
  #132 (permalink)  
Old 11-14-2007, 06:48 AM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Thumbs up Windows Mobile Tweaks

Change Calendar 'working days'

If you wish to change the 'working days' in the calendar, adjust the following:
For a Mon-Fri workweek (default):
Quote:
HKLM\Software\Microsoft\Calendar\ActiveTimes\Activ eTimes = 2210003E (DWORD hexadecimal)
For a Mon-Sat workweek:

Quote:
HKLM\Software\Microsoft\Calendar\ActiveTimes\Activ eTimes = 2210007E (DWORD hexadecimal)
For a Tue-Thu workweek:

Quote:
HKLM\Software\Microsoft\Calendar\ActiveTimes\Activ eTimes = 22100016 (DWORD hexadecimal)


Here's how this works. When editing the value, switch to "Binary" mode. For the default Mon-Fri, you should see:

Quote:
100010000100000000000000111110
The last 7 numbers are what we're interested in. They stand for the days of the week, in reverse order: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday. When the number is "1", it is a working day. If it is "0", it's not a working day. So to look at the above examples again:
Quote:
Days : SFTWTMS
Mon-Fri: 0111110
Mon-Sat: 1111110
Tue-Thu: 0011100
Using the above, you should be able to set the working days to whatever you'd like.
Note that this value also adjusts the working HOURS. The examples here all use the default 8am-5pm workday. See the "Change Calendar 'working hours'" tweak to modify this.
Note that the ActiveTimes key and value may not exist. Simply create them first.
__________________
Prasanna Vignesh
MCPD | Web Developer
Reply With Quote