Scriptcalendar.com
An Incredible Javascript Event Calendar

User Guide

»  Table Of Contents

Changing the Weekday Names or Month Names

Section 2.4.3

You change the weekday names that appear above each column in the calendar table. The names are stored in the "longDays" property. This property is an array of strings. Below is the default value of the longDays property.

objCal.longDays = new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");

You could easily change this to be full names instead of abbreviations. Simply set the property equal to a new array of string values.

objCal.longDays = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

Similarly, the month names are stored the property "longMonths". Below is the default value of the longMonths property.

objCal.longMonths = new Array( "January", "February", "March", "April","May", "June", "July", "August", "September", "October", "November", "December" );

»  Table Of Contents