AmigaActive (1386/2347)

From:Neil Bothwick
Date:18 Mar 2001 at 16:19:51
Subject:Re: Javascript date problem

Joris Kempen said,

> I found my bug in it: i call it with '7' as the number for the month. But JS
> interprets this as being August. When i use '6' it works correctly with
> month i want: juli. Is this normal in javascript that the months start
> counting at '0'?

It's normal in most programming languages for indices to start at 0.

It's all part of the mystique of programming, designed to keep it
elitist instead of making it easy for normal people to understand :)

Neil



Neil Bothwick - New Media Editor, Amiga Active Magazine
Connected via Wirenet - http://www.wire.net.uk
The UK's first Amiga-only internet access provider
---
Puritanism: The haunting fear that someone, somewhere may be happy.

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Make good on the promise you made at graduation to keep
in touch. Classmates.com has over 14 million registered
high school alumni--chances are you'll find your friends!
http://us.click.yahoo.com/l3joGB/DMUCAA/4ihDAA/d8AVlB/TM
---------------------------------------------------------------------_->

Quote carefully and read all ADMIN:README mails

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/