[Answered ]-Django date time filter?

0👍

<td>{{ item.newsId.createdAt|date:"M. d,Y, f A" }}</td>

check below ss
enter image description here

Hi can you try above one

👤Robert

2👍

you can do it like below

<td>{{ item.newsId.createdAt|date:"N j, Y, g:iA" }}</td>

for more configurations visit django builtins date

0👍

This helps to see the date time in this format: 1 day, 8 hours suitable to add 1 day, 8 hours ago 😉
<td>{{ item.newsId.createdAt|timesince }}</td>

Leave a comment