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 trialPrem Yadav
7,346 PointsNot able to solve this query.........
Hi there In this query i have selected title and used STRFTIME method as it asked but still throwing error. please help
2 Answers
Prem Yadav
7,346 PointsSELECT title, STRFTIME("%m/%y", date_released) AS month_year_released FROM movies;
Steven Parker
231,269 PointsThat helps, but can you also point me to the course page you're working with?
Katie Wood
19,141 PointsHi there,
Based on the code you posted, you might want to try capitalizing the 'Y' in your strftime function - there may not be an option for year that uses a lowercase letter.
Try something like this:
SELECT title, STRFTIME("%m/%Y", date_released) AS month_year_released FROM movies;
If that doesn't work, let me know which course you're on so I can make sure I test in the correct workspace.
Steven Parker
231,269 PointsSteven Parker
231,269 PointsTo facilitate answering your question, please show your complete code and provide a link to the course page.