Extends the Date object with extra functionality