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