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 trialElvis Sango
2,370 Pointsdont get it used {0} and {1} but still doexnt work
d
1 Answer
Steven Parker
231,269 PointsYou forgot to say which question you are having trouble with, but I'll guess it's the one that wants the date " formatted as a full date/time pattern (short time)".
The placeholder for the standard full date/time format is {0:f}
For details, see the MSDN page on Standard Date and Time Format Strings.
Elvis Sango
2,370 PointsElvis Sango
2,370 PointsThabks also reviewed the video and from 6:00 the answer comes out. it was about the format of the date thus {0:f} is the answer Complete the following code in order to produce a string that prints the current date and time, but formatted as a full date/time pattern (short time) like so: "The current date and time is Monday, June 15, 2009 1:45 PM" string.Format("The current date and time is .", DateTime.Now)