MetaDate::setValue PHP Method

setValue() public method

fn __construct
public setValue ( $p_value )
    public function setValue($p_value)
    {
        if (!MetaDate::IsValid($p_value)) {
            throw new InvalidValueException($p_value, MetaDate::GetTypeName());
        }
        $this->m_value = trim($p_value);
        list($this->m_year, $this->m_month, $this->m_monthDay) = preg_split('/-/', $this->m_value);
        $timestamp = strtotime($this->m_value);
        $date_time = getdate($timestamp);
        $this->m_weekDay = $date_time['wday'];
    }