Returns the "date" node

@return NodeDefinition
761466
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()
        ;
    }
560965
public function getOtherNode(Node $node)
    {
        if ($node === $this->getStartNode()) {
            return $this->getEndNode();
        }

        return $this->getStartNode();
    }
1206670
public function getDate()
    {
        if ($this->hasDatabaseField('Date')) {
            return $this->getField('Date');
        }
        return !empty($this->PublishDate) ? $this->PublishDate : null;
    }
1057185
function tempMainNode()
    {
        if ( $this->TempNode !== null )
            return $this->TempNode;
        $object = $this->contentObject();
        if ( $object->attribute( 'status' ) == eZContentObject::STATUS_DRAFT )
        {
            $nodeAssignments = $this->nodeAssignments();
            $mainNodeAssignment = null;
            foreach( $nodeAssignments as $nodeAssignment )
            {
                if ( $nodeAssignment->attribute( 'is_main' ) )
                {
                    $mainNodeAssignment = $nodeAssignment;
                    break;
                }
            }
            if ( $mainNodeAssignment === null and
                 count( $nodeAssignments ) > 0 )
            {
                $mainNodeAssignment = $nodeAssignments[0];
            }
            if ( $mainNodeAssignment )
            {
                $this->TempNode = $mainNodeAssignment->tempNode();
            }
        }
        else if ( $object->attribute( 'status' ) == eZContentObject::STATUS_PUBLISHED )
        {
            $mainNode = $object->mainNode();
            if ( is_object( $mainNode ) )
            {
                $this->TempNode = eZContentObjectTreeNode::create( $mainNode->attribute( 'parent_node_id' ),
                                                                   $mainNode->attribute( 'contentobject_id' ),
                                                                   $this->attribute( 'version' ),
                                                                   $mainNode->attribute( 'sort_field' ),
                                                                   $mainNode->attribute( 'sort_order' ) );
                $this->TempNode->setName( $mainNode->Name );
            }
        }
        return $this->TempNode;
    }
17163
public static function getCurrentDayOfWeek()
    {
        $now = new DateTime();

        $year = $now->format('Y');
        $month = $now->format('m');
        $day = $now->format('d');

        return self::getDayOfWeek($year, $month, $day);
    }
45794
public function startDatetime()
    {
        $date = explode('-', $this->start_date);
        $time = explode(':', $this->start_time);
        $start_datetime = Carbon::create($date[0], $date[1], $date[2], $time[0], $time[1]);

        return $start_datetime;
    }
1202762
public static function getDateWeekAgo()
    {
        // today
        $date = new \DateTime(date('Y-m-d'));
        // minus 7 days
        $date = $date->sub(new \DateInterval('P7D'));
        return $date->format('Y-m-d');
    }
804358
public function getRequestDate($format = null)
    {
        $node = $this->getFirst('//epp:epp/epp:response/epp:resData/domain:trnData/domain:reDate');
        if ($format === null) {
            return $node->nodeValue;
        }

        return date_create_from_format($format, $node->nodeValue);
    }
429522
public function getStartDate() : ?string 
    {
        if ( ! $this->hasStartDate()) {
            $this->setStartDate($this->getDefaultStartDate());
        }
        return $this->startDate;
    }
640298
public function getDeathDate(): Date
    {
        foreach ($this->getAllDeathDates() as $date) {
            if ($date->isOK()) {
                return $date;
            }
        }

        return new Date('');
    }
680303
public function getDefinition($format = 'yml', $node = null)
    {
        switch (mb_strtolower($format)) {
            case 'json':
                $dumper = new JsonReferenceDumper();
                break;

            case 'yml':
            case 'yaml':
                $dumper = new YamlReferenceDumper();
                break;

            case 'php':
            default:
                $dumper = new PhpReferenceDumper();
                break;
        }

        $definition = $this->definition;
        $definition = $definition->getConfigTreeBuilder()->buildTree();
        if ($node && $definition instanceof ArrayNode) {
            $definition = $definition->getChildren()[$node];
        }

        return $dumper->dumpNode($definition);
    }
1176137
public function getDesde()
    {
        if (!$this->xml) {
            return false;
        }
        $D = $this->xml->getElementsByTagName('D')->item(0);
        return $D ? (int)$D->nodeValue : false;
    }
216451
public function getDateRange()
    {
        $fields = $this->getFields();
        if (!empty($this->start) && empty($this->end)) {
            return 'since ' . $fields['start']->formattedValue;
        } elseif (empty($this->start) && !empty($this->end)) {
            return 'until ' . $fields['end']->formattedValue;
        } else {
            return implode(' – ', [$fields['start']->formattedValue, $fields['end']->formattedValue]);
        }
    }
1193987
public function getDateAttribute()
    {
        \Carbon\Carbon::setLocale(Decoy::locale());
        return sprintf('<a href="%s" class="js-tooltip" title="%s">%s</a>',
            $this->filterUrl(['created_at' => $this->created_at->format('m/d/Y')]),
            $this->getHumanDateAttribute(),
            $this->created_at->diffForHumans());
    }
1112755
private function getBoundary() {

		if(null === $this -> boundary) {
			$this -> boundary = md5(date('r', time()));
		}

		return $this -> boundary;
	}
505724
public function getNodeBuilder()
    {
        if (!isset($this->nodeBuilder)) {
            $this->nodeBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'node');
        }

        return $this->nodeBuilder;
    }
841371
public function getDate()
    {
        if (!isset($this->data['date'])) {
            return null;
        }
        try {
        return (class_exists('\Carbon\Carbon')) ?
            new \Carbon\Carbon($this->data['date'], 'GMT') :
            $this->data['date'];
        } catch (\Exception $e) {
            return null;
        }
    }