I have a string, there is a time in it. It looks like 2023-04-23T19:01:00-04:00
.
I want to get the date from this line and compare it with today's. I have a problem with it because, it has -04:00
in the end, and I don't know how to place it to datetime.strptime
.
I'd like to use datetime
.
(I think that -04:00
is UTC-4, I don't know how to use it.)