change date constructor