Click to See Complete Forum and Search --> : need help with a javascript calendar


rouli
10-19-2005, 05:09 AM
hi everyone,

i am using a javascript calendar but i want to start the week from monday instead of sunday.

i changed an array var WeekDay = new Array("Su","Mo","Tu","We","Th","Fr","Sa"); to

var WeekDay = new Array("Mo","Tu","We","Th","Fr","Sa","Su"); and it worked fine (didnt do

much effort lol :D), but i discovered a bug where December 2000 started on a monday instead of a

sunday so i thought there might be other similar bugs too...

is there any function i should use that would start the week from monday? if anyone has ideas please

let me know

thank u :)

Kor
10-19-2005, 06:20 AM
You have changed only the "apperence" of the day name, not the day in itself. In other words, you have only "renamed" days. By default, the PC inner clock considers Sunday the first day of the week. It is hard to say how the code must be modified without seeing the code...