def update_datetime(value, range = None):
        """
        Updates (drifts) a Date value within specified range defined

        :param value: a Date value to drift.

        :param range: (optional) a range in milliseconds. Default: 10 days

        :return: an updated DateTime value.
        """
        range = range if range != None else 10
        if range < 0:
            return value
        
        days = RandomFloat.next_float(-range, range)

        return value + datetime.timedelta(days)