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 trialstef22
5,354 PointsWhat is wrong about this?
It tells me that I need to echo the date, but I have...?
<?php
echo 'Today is ';
//Place your code below this comment
$date = date("F j, Y");
echo "Today is $date";
?>
1 Answer
Jennifer Nordell
Treehouse TeacherHi! There are a couple of things going on here. But you're so close, so I'm just going to give some hints.
- You are echoing out "Today is" not once, but twice
- The format for the date has the wrong day format character. It should be
d
instead ofj
- For some reason, it really wants the echo and the date function to be all on the same line
- Only one line of code (in addition to what was already there) is needed to pass this challenge.
I think you can get it with these hints, but let me know if you're still stuck!