[Answered ]-How to format multiple python datetime instances to a simple format?

2đź‘Ť

âś…

It sounds like something that is fundamentally “business logic.” For example, if the dates happen to all be Easter on consecutive years, do you expect that to be picked up? What about if they are all the last day of Hanukkah? This isn’t likely to be something that’s handled by a language or library directly–you’ll need to write the logic and rules yourself, I imagine. There’s definitely room to be innovative here–think about how you can express the rules in a uniform way…look at the existing timezone database and other such existing software for inspiration (or warnings of what to avoid!).

👤John Zwinck

0đź‘Ť

As per your need you have to use Python Calendar module to iterate over the weekdays or days or the month. It provide the functions to read on specific day of month or week.

👤Nilesh

Leave a comment