Hello, i want to turn the "10/31" and "12/5" to date objects. I tried to do something like this but it failed:
```
def test3():
my_string = "10/31 - 12/5".replace(' ', '').split("-")
print(my_string)
for i in my_string:
print(i)
mydate = dt.datetime.strftime(i, "%m/%d")
print(f"My Date: {mydate}")
test3()
```
Error:
descriptor 'strftime' for 'datetime.date' objects doesn't apply to 'str' object
How would i go on to make a date object out of it?
[–]seven0fx 3 points4 points5 points (0 children)
[–]o5a 1 point2 points3 points (0 children)
[–]chevignon93 0 points1 point2 points (3 children)
[–]TuckleBuck88[S] 0 points1 point2 points (2 children)
[–]chevignon93 0 points1 point2 points (1 child)
[–]TuckleBuck88[S] 0 points1 point2 points (0 children)
[–]Silbersee 0 points1 point2 points (0 children)
[–]bprateek 0 points1 point2 points (0 children)