@@Rolf B
das Datum wird in der Tabelle so gespeichert: "202105072145".
Das steht hoffentlich für den 7. Mai, nicht für den 5. Juli.
(Standard wäre bspw. ISO mit YYYY-MM-DD-HH:MM:SS).
Nicht ganz. T
zwischen DD
und HH
. Außerdem sollte bei Uhrzeiten immer die Zeitzone mit angegeben sein.
Einerseits hat HTML das <input type="date"> Element, um ein Datumsfeld für die Eingabe zu haben.
Was hat das hiermit zu tun?
Andererseits hat HTML das <time>
-Element, wobei der Wert im ISO-8601-Format sein muss. Genauer gesagt: einer Teilmenge davon. Aber statt T
darf auch ein Leerzeichen zwischen Datum und Uhrzeit stehen, IIRC.
<time>2021-05-07 21:45</time>
oder
<time datetime="2021-05-07 21:45">7. Mai 2021, 21:45 Uhr</time>
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon