Hacker News new | ask | show | jobs
by codemaniac 3745 days ago
In Python:

https://repl.it/B6os/5

1 comments

Why would you bother with that when you can just call `date.strftime("%A")`? (or `date.isoweekday()` if you want the numerical index)