How to get only month name and total

30 views
Skip to first unread message

Azharul Islam Somon

unread,
Apr 4, 2021, 1:32:41 AM4/4/21
to Django users
Hello ,
I am trying to get only month name and count number from QuerySet [{'month': datetime.datetime(2021, 3, 1, 0, 0, tzinfo=<DstTzInfo 'Asia/Dhaka' +06+6:00:00 STD>), 'count':}]

As here have (2021, 3, 1,0,0) but I want only 3 or March. and count 2

How can i view the month and count only, please?

Thanks in advance.
date.PNG

Derek

unread,
Apr 6, 2021, 4:19:44 AM4/6/21
to Django users

Azharul Islam Somon

unread,
Apr 6, 2021, 11:12:01 PM4/6/21
to django...@googlegroups.com
Thanks, got it.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/KIrBLEfAeNE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f47b9d96-f10e-4225-9abd-d59e9e6f70bdn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages