changed date var and return value