converting datetime.datetime to str #642
-
So I am able to pull the datetime.datetime value out of specific posts, but am having trouble converting to a string which I need to be able to text to myself.
After this bit of code, I am still getting that type(date) is <class 'datetime.datetime'>. What am I doing wrong here? |
Beta Was this translation helpful? Give feedback.
Answered by
neon-ninja
Jan 23, 2022
Replies: 1 comment 1 reply
-
Why not do |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
neon-ninja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not do
str(post['time'])
?