yii\db\SchemaBuilderTrait::date PHP Method

date() public method

Creates a date column.
Since: 2.0.6
public date ( ) : ColumnSchemaBuilder
return ColumnSchemaBuilder the column instance which can be further customized.
    public function date()
    {
        return $this->getDb()->getSchema()->createColumnSchemaBuilder(Schema::TYPE_DATE);
    }