Web Design and Web Development

HTML XML Web Design Development Search Engine Optimization

Extending The JavaScript Date Object with User Defined Methods

Posted on Dec 4, 2007 09:37:55 PM

Applications, particularly business applications, can often require a lot of date manipulation, but that code could be simplified if JavaScript’s core Date object had some additional methods. In this article, I will show you how to add custom methods to the Date object that are inherited by each date instance.

Of course, all of the methods shown here could be written as global functions, but there are some advantages to Read the rest of this entry »

Tags: , , , , , , ,