I've seen a lot of similar questions, and still I don't seem to be able find out what the issue with my code is. I'm running this:
from datetime import datetime
date_st = "17:00"
date = datetime.strptime(date_st, "%#H:%M")
And I get the error:
ValueError: '#' is a bad directive in format '%#H:%M'
I'm running Windows, that's why I use %#H and not %-H. I tried %-H though and it doesn't work as well.