<p>It's not completely clear to me what you're trying to do, but to answer part of your question:</p>
<p>To include a Date field in entry titles, you'll have to convert it to a string – i.e. format it, for example</p>
<pre><code>{heading} - {dateFieldHandle|date('Y-m-d')}
</code></pre>

CC BY-SA 4.0
2024-04-21T13:41:53.000Z
2024-04-21T13:41:53.000Z
Mats Mikkel Rummelhoff
<p>I would like to know if it is possible to display a custom date field in the card view of matrix field.
Unfortunately, it is not possible to use a date field as a title or part of a title. it gives:</p>
<pre><code>Object of class DateTime could not be converted to string
</code></pre>

<matrix><control-panel>
Matrix: Show Date Field in Card View
# Matrix: Show Date Field in Card View

(Asked by: username_0 on 2024-04-21)

I would like to know if it is possible to display a custom date field in the card view of matrix field.
Unfortunately, it is not possible to use a date field as a title or part of a title. it gives:
Object of class DateTime could not be converted to string

**Tags:** matrix, control-panel

---

## 1 answers

### Answer by username_1 on 2024-04-21. Score: 2 | Accepted answer

It's not completely clear to me what you're trying to do, but to answer part of your question:
To include a Date field in entry titles, you'll have to convert it to a string – i.e. format it, for example
{heading} - {dateFieldHandle|date('Y-m-d')}


---

