I want 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 whenver a call is made to Date() rather than the native code.
TIA