Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python SQLAlchemy Basics Working with SQLAlchemy Import Book CSV

Andy McDonald
Andy McDonald
5,016 Points

Why is she using RegEx? Why wouldnt she just use strptime?

I'm really confused as to why she is not just making a datetime object with strptime in the database project video.

https://teamtreehouse.com/library/import-book-csv

1 Answer

Megan Amendola
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Megan Amendola
Treehouse Teacher

Hi! That's the way my brain solved the problem at the time. There's never one right way to code a project but I highly encourage tweaking any projects you work through to put your own spin on them especially if you're going to use them as portfolio pieces to share with potential employers. If it makes more sense to you right now to use strptime, then go for it! I think that's a great idea.