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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Barak TheProgrammer](https://secure.gravatar.com/avatar/48f08637650f13c5c7c0b96cbc2989b3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Barak TheProgrammer
1,773 PointsI DONT GET IT, why dont he accept that
i've tried put the function afet the comment, and its doing the job either way, but in both ways it doesnt accept it ^!^
<?php
echo 'Today is '.date ("F d Y");
//Place your code below this comment
?>
2 Answers
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsHey Barak Ben-Amram
Nancy's code is correct in that the challenge wants you to use an additional echo statement. If you look at the pre-loaded code in the challenge, there are additional instructions to
//Place your code below this comment
Hi, Nancy Melucci ... You're code is correct, except the challenge did not ask for a <br> tag in the echo statement. Challenges are super picky and very strict. If you add more than what's asked for, it will result in a Bummer! message. So if you delete that part, your code will pass.
echo date('F d, Y');
Keep Coding! :)
![Nancy Melucci](https://uploads.teamtreehouse.com/production/profile-photos/944942/micro_0000goodview.jpg)
Nancy Melucci
Courses Plus Student 36,045 PointsThanks...I appreciate the help.
![Laura Steiner](https://secure.gravatar.com/avatar/8cb5a39b189f6decf938b85d5c188508?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Laura Steiner
14,396 PointsHi --
Your code is missing the required comma. The system doesn't like the extra space between date
and the first paren (. I believe you do need to add the changes after the comment (which requires another echo
).
When I make those changes, the test passes for me.
Best of luck!
Laura
Nancy Melucci
Courses Plus Student 36,045 PointsNancy Melucci
Courses Plus Student 36,045 PointsHey this probably won't be much help...but I adjusted your code like this. And it ran and produced the correct statement Today is January 22, 2017 but it did not pass either. Maybe the instructor or a pro community member can help us both out?