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 trialMohamed Abdi Kamal
1,395 PointsI dont understand the error
What should I do, i've formatted the date according to the document
<?php
echo "Today is ". $today;
//Place your code below this comment
$today = date("F-d-Y");
?>
2 Answers
Mihai Dinu
12,763 Pointsecho "Today is " . date("F d, Y");
Ken Alger
Treehouse TeacherMohamad;
A couple of things here. First, the challenge isn't expecting you to set and utilize variables. Instead, we just need to echo
the properly formatted date after the code comment.
Also, double check your date formatting versus what is being requested by the challenge instructions. Right now your F-d-Y
format would produce February-08-2018, for example.
Post back if you are still stuck.
Ken
Fahad Khan
Courses Plus Student 261 PointsFahad Khan
Courses Plus Student 261 Pointsgo ask here https://www.google.com