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 trialGautier Gédoux
5,006 PointsHi,I think there is a mistake in the challenge, when i put .MediumStyle you are asking for ShortStyle , i can't finish
Hi,I think there is a mistake in the challenge, when i put .MediumStyle you are asking for ShortStyle and when i put .ShortStyle you are asking for MediumStyle, i can't finish this challenge
1 Answer
Gareth Borcherds
9,372 PointsHey! I literally just had this same issue and couldn't figure it out for a while. That is until I reread the question like 50 times.
The time style is the short style and the date style is the medium style. So you need two lines.
dateFormatter.timeStyle() = .ShortStyle dateFormatter.dateStyle() = .MediumStyle
I'm not sure if that's the exact answer, but you get the idea.