protected function createDateControl($container, $column, $record)
{
$value = $this->getRecordPropertyValue($column, $record);
$control = new TDatePicker();
$control->setFromYear(1900);
$control->setInputMode(TDatePickerInputMode::DropDownList);
$control->setDateFormat('yyyy-MM-dd');
if (!empty($value)) {
$control->setDate(substr($value, 0, 10));
}
$control->setCssClass('date-dropdown');
$this->setNotNullProperty($container, $control, $column, $record);
return $control;
}
protected function createDateControl($container, $column, $record) { $control = parent::createDateControl($container, $column, $record); $value = $this->getRecordPropertyValue($column, $record); if (!empty($value) && preg_match('/timestamp/i', $column->getDbType())) { $control->setTimestamp(intval($value)); } return $control; }