Is it possible to change the date format from “1984-03-14T00:00:00+01:00” to something like “14-03-1984” within a custom:auto-entities card?
As awesome as auto-entities is, it is not always the right answer.
I use flex-table-card for birthdays. See below. You can certainly modify the date how you want instead of what I do.
type: custom:flex-table-card
title: Birthdays
entities:
include: sensor.anniversary_*bday
sort_by: friendly_name+
css:
tbody tr+: 'user-select: text'
columns:
- name: Name
data: friendly_name
modify: x.replace(' BDay', '')
- name: Birthdate
data: date
modify: >-
var date = new Date(x); const months = ['January ','February ','March
','April ','May ','June ','July ','August ','September ','October
','November ','December ']; months[date.getMonth()] +
String(date.getDate())
- name: Age
data: current_years
align: right
- name: Days
data: state
align: right
And, it looks like this:
With data under it.
With this, you can click on the headings to sort differently.
Thank you very much for the quick and helpful answer. I will dive into the flex-table card - I don’t know why I wasn’t aware of this!
Thanks again!