Add new constructor and setter of date
Change example