I would like a kind of wrapper for the default Date object in JavaScript so that whenever I have something like var a = new Date();, I want to execute some particular code in the constructor.
I basically want to have my own Date class that needs to be invoked whenever a call is made to Date() rather than the native code.