changed date constructor