Prado\Web\UI\JuiControls\TJuiDatePicker::setTimeStamp PHP Метод

setTimeStamp() публичный Метод

Sets the date for the date picker using timestamp.
public setTimeStamp ( $value )
    public function setTimeStamp($value)
    {
        if ($value === null || is_string($value) && trim($value) === '') {
            $this->setText('');
        } else {
            $date = TPropertyValue::ensureFloat($value);
            $formatter = new TSimpleDateFormatter($this->getDateFormat());
            $this->setText($formatter->format($date));
        }
    }