Set Birthdate

@var string $Birthdate
@return Profile
760215
public function setBirthdate(\DateTime $Birthdate = null)
    {
        $this->Birthdate = $Birthdate ? $Birthdate : null;

        return $this;
    }
170882
public function setEndDate($date)
    {
        $date = AnDomainAttributeDate::getInstance()->setDate($date);
        $this->set('endDate', $date);

        return $this;
    }
1298559
public function getAge($date = null, $months = false)
    {
        $birthDate = $this->getBirthDay();
        
        if (is_null($date)) {
            $date = new \MUtil_Date();
        }        
        
        if (!($birthDate instanceof \MUtil_Date) || !($date instanceof \MUtil_Date)) {
            return null;
        }
        
        // Now calculate age         
        if ($months) {
            $age  = $date->diffMonths($birthDate);                
            $unit = 'dd';        
        } else {
            $age  = $date->diffYears($birthDate);
            $unit = 'MMdd';
        }
        if ($date->get($unit) < $birthDate->get($unit)) {
            $age--;
        } 

        return $age;
    }
30950
public function setBirthday( $value )
	{
		if ( $value === $this->getBirthday() ) { return; }

		if( $value !== null )
		{
			$this->_checkDateOnlyFormat( $value );
			$value = (string) $value;
		}

		$this->_values['birthday'] = $value;
		$this->setModified();
	}
1161670
public function setUpdatedAt($date)
    {
        $date = $this->localeDate->date($date)
            ->format(\Zend_Date::ISO_8601);
        $this->updatedAt = $date;

        return $this;
    }
22475
public function setProfileName($firstName, $lastName)
    {
        return $this->exec('set_profile_name ' . $this->escapeStringArgument($firstName) . ' '
            . $this->escapeStringArgument($lastName));
    }
517203
public function getProfile($uuid)
    {
        $self = $this;

        return new Profile(function () use ($self, $uuid) {
            return $self->doGetProfile($uuid);
        });
    }
562953
public function setId(int $id): SocialProfile
    {
        Assert::greaterThan($id, 0);

        $this->id = $id;

        return $this;
    }
457780
public function setDateTimeFrom($date = null)
    {
        $date = $this->resolveCarbon($date);

        return $this->modify($date->rawFormat('Y-m-d H:i:s.u'));
    }
886109
public function setTimeFrom($date)
    {
        $date = static::instance($date);

        $this->setTime($date->hour, $date->minute, $date->second);

        return $this;
    }
138276
public function setBirthdate($date)
    {
        if ($date instanceof DateTime) {
            $date = $date->format('Y-m-d');
        }

        $this->data->birthDate = $date;

        return $this;
    }
1356893
public static function personalAccessTokensExpireIn(DateTimeInterface $date = null)
    {
        if (is_null($date)) {
            return static::$personalAccessTokensExpireAt
                ? Carbon::now()->diff(static::$personalAccessTokensExpireAt)
                : new DateInterval('P1Y');
        }

        static::$personalAccessTokensExpireAt = $date;

        return new static;
    }
242950
public function setProfiler($level = self::PROFILE_ALL, $slowms = 100) {

        return $this->db->command([
            'profile' => (int)$level,
            'slowms'  => (int)$slowms
        ]);
    }
410618
public function setPubDate($pubDate)
    {
        if ($pubDate instanceof \DateTime) {
            $this->pubDate = $pubDate;
        } else {
            $this->pubDate = new \DateTime($pubDate);
        }

        return $this;
    }
936164
public function setIdentity($identity = null)
    {
        if (null === $identity) {
            // Setting the identity to null resets the code and messages.
            $this->setCode();
            $this->setMessages();
        }
        $this->setParam('identity', $identity);
        return $this;
    }
833682
public function setDateFrom($date = null)
    {
        $date = $this->resolveCarbon($date);

        return $this->setDate($date->year, $date->month, $date->day);
    }
128494
public function setDateTime(DateTime $date)
    {
        $this->setYear((int)$date->format('Y'));
        $this->setMonth((int)$date->format('m'));
        $this->setDay((int)$date->format('d'));

        return $this;
    }