Date can now be passed as parameter