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 trial

C# C# Streams and Data Processing Streaming Data on the Net Deserialize the News Results

Thomas Kleist
Thomas Kleist
6,888 Points

why is this wrong string.Format("The current date and time is .", {0:dddd, MMMM dd, yyyy hh:mm tt} DateTime.Now)

I need to know why this is the wrong format I have tested it in visual studio and i looks correct

1 Answer

Steven Parker
Steven Parker
231,271 Points

You're really close there.

Except I think you need just one "d" and one "h".

But what the quiz is really looking for is the shorthand notation: "{0:f}".