Search For:
Categories:
Products:
Category Navigation: Home \
[KB_44] - Change aspWebCalendar to start weeks on Monday instead of Sunday.
SUMMARY:
This article explains how to make aspWebCalendar start the weeks on Monday instead of Sunday! The script is setup to allow this and only requires a single line to be changed.

MORE INFORMATION:

In order to change aspWebCalendar to start weeks on a Monday instead of Sunday you only need to make a single modification to the code.  This feature was added in a release that didn't include any database structure updates so it wasn't added to the configuration section in the script but was added as a variable you just need to change manually in the code.

Around line 67 of the code in the calendar.asp file you should see the following code:

67 '******* Added in 4.5 release *************************************
68
69 UsePageTemplate = "NO"
70 StartWeeksOnMonday = "NO"
71 ShowHelpInAdminOnly = "YES"
72 UsePrintButton = "YES"
73 DefaultColorScheme = "gray"
74 ImageFolder = "calendar/images/"

On line 70 there is a variable called "StartWeeksOnMonday"... just change that value to "YES" instead of "NO".

The same change must be done in the "calendar/date_picker.asp" file as well... open that file and look around line 26:

26 '----- Added for the 4.5a release ------------------------------------------------
27
28 S
tartWeeksOnMonday = "NO"

On line 28 there is a variable called "StartWeeksOnMonday"... just change that value to "YES" instead of "NO".


Categories
Frequently Asked Questions ▪ How-To ▪

Applies To
  • aspWebCalendar ALL

Article Details
Article ID: KB_44
Date Added: November 16, 2005
Last Update: November 16, 2005
User Rating:  (0 Ratings) (0 Ratings) (0 Ratings) (0 Ratings) (0 Ratings)
Total Views: 12261

Article Actions
Print Article
Email Article
Add To Favorites

This KnowledgeBase is powered by aspWebKnowledgeBase, an upcoming product from Full Revolution, Inc.

  Legal Information  |  Privacy Information


Site Contents Copyright 2000 - 2005 Full Revolution, Inc.  All rights reserved.