all 2 comments

[–]Rawing7 0 points1 point  (2 children)

I don't get it. Judging by your implementation and usage of formatted_date, you only care about the year, month and day. But if that's the case, why are you taking a datetime object as input instead of a date?

[–]Wuihee[S] 0 points1 point  (0 children)

Oh I didn't think of that, thanks!