Prado\Web\UI\WebControls\TDatePicker::setTimeStamp PHP Method

setTimeStamp() public method

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));
        }
    }