Chartjs-How to filter year from datefield in django 28 September 2023 by thecoderscamp.com 0👍 You do it like this for a field called date: dates = Paymentdete.objects.filter(date__year='2021') Chartjs-Chart.js Chart displays but no data Chartjs-How to remove labels from ng2-chart(chart.js) Source:stackexchange.com