private function getDateNode(): NodeDefinition
    {
        $treeBuilder = new TreeBuilder('date');

        return $treeBuilder
            ->getRootNode()
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('format')
                    ->addDefaultsIfNotSet()
                    ->children()
                        ->scalarNode(DateLength::DATE)
                            ->info('Format of date without time')
                            ->defaultValue('d.m.Y')
                        ->end()
                        ->scalarNode(DateLength::DATETIME)
                            ->info('Format of date with time')
                            ->defaultValue('d.m.Y H:i')
                        ->end()
                        ->scalarNode(DateLength::TIME)
                            ->info('Format of time without date')
                            ->defaultValue('H:i')
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }