Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMike Hansen
Python Web Development Techdegree Student 3,419 Pointsunresolved refference 'datetime'
Hey everyone, when i'm doing the joined_at i'm getting an unresolved reference 'datetime' why?
2 Answers
Steven Parker
231,269 PointsDid you import datetime
?
Otherwise, it would help to see your code, or better yet, make a snapshot of the workspace and provide the link to it.
Kyle Salisbury
Full Stack JavaScript Techdegree Student 16,363 PointsI was trying the same thing on PyCharm and it took me a second to figure it out. You have to first install datetime. Then you must import datetime from datetime. That was my problem at least.
Mike Hansen
Python Web Development Techdegree Student 3,419 PointsMike Hansen
Python Web Development Techdegree Student 3,419 Pointsit's probably because i'm doing this locally but it worked :)