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!
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 trial
Lucio Bonforte4,164 Points
I need help please. What am I doing wrong?
I have reproduced the following code but is not working.
SELECT title, STRFTIME("%d/%m/%y", date_released) AS month_year_released FROM movies;
Jennifer NordellTreehouse Teacher
Hi there, Lucio Bonforte! It looks like you're doing great. Unlike some other things the formatting string is case-sensitive. So instead of
%y, it's looking for
%Y. Also, it's only asking for the month and year, not the day too
So if I change:
Your code passes with flying colors Hope this helps!
Adam Pengh29,880 Points
You're adding a day(%d) to your string that isn't needed and %y should be %Y. They only want mm/yyyy.
SELECT title, STRFTIME("%m/%Y", date_released) AS month_year_released FROM movies