Computer and Internet » Programming » Javascript

ID #1003

Javascript Date Function

Attention. When you want to set the Month of an Javascript Date Object you have to take an Integer between 0 and 11 and not between 1 to 12 as everybody would think.

call:

var test = new Date();
test.setMonth(0)

for setting January.


Theres a pretty good class which extends the Javascript Date Class.

The Javascript date extras files adds more functionality to the Date Class esspecially for working with Timespans.

Tags: -

Related entries:

Last update: 2006-09-27 19:15
Author: Christian Trummer
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry