0👍
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
- [Answered ]-Send weekly emails for a limited time after sign up in django
- [Answered ]-Django not showing updated data from database
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>
- [Answered ]-Why is pip installation of scipy failing in elastic beanstalk?
- [Answered ]-Django: assert 'Many-to-many' relation exists in test
Source:stackexchange.com