TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,47 @@
.. include:: /Includes.rst.txt
.. _feature-63561:
==================================================
Feature: #63561 - Add TypoScript stdWrap strtotime
==================================================
See :issue:`63561`
Description
===========
A new TypoScript property `strtotime` is now available within `stdWrap` which allows for conversion of formatted
dates to timestamp, e.g. to perform date calculations.
Possible values are `1` or any time string valid as first argument of the PHP `strtotime()` function.
Basic usage to convert date string to timestamp:
.. code-block:: typoscript
date_as_timestamp = TEXT
date_as_timestamp {
value = 2015-04-15
strtotime = 1
}
Convert incoming date string to timestamp, perform date calculation and output as date string again:
.. code-block:: typoscript
next_weekday = TEXT
next_weekday {
data = GP:selected_date
strtotime = + 2 weekdays
strftime = %Y-%m-%d
}
Impact
======
The new property is available everywhere in TypoScript where `stdWrap` is applied.
.. index:: TypoScript, Frontend