---
title: "Feature: #68022 - Added base date attribute to DateViewHelper"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-68022"
source: "Changelog/7.4/Feature-68022-AddedBaseDateAttributeToDateViewHelper.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Feature: #68022 - Added base date attribute to DateViewHelper

See [forge#68022](https://forge.typo3.org/issues/68022)

## Description

The DateViewHelper has been improved with an optional attribute named `base`.
The attribute can be used to define a base-date when using a relative time specification for `date`.
If `date` is a `DateTime` object, `base` is ignored.

The possible relative date format specification can be found in:
[http://www.php.net/manual/en/datetime.formats.relative.php](http://www.php.net/manual/en/datetime.formats.relative.php)

```html
<f:format.date format="Y" base="{dateObject}">-1 year</f:format.date>
```

This will result in the output `2016` assuming the `dateObject` is some date in 2017.
