Extending The JavaScript Date Object with User Defined Methods
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.
O'Sullivan, Lawrence. Digital Web Magazine (2008). Articles>Web Design>Programming>JavaScript