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 trialdavorrapic
990 PointsI used the correct format
it says i didnt use the correct format to date("F j, Y") but on preview the output looks fine Task is to displaz time like this Example: Today is July 04, 2016
<?php
echo 'Today is ';
//Place your code below this comment
//$today = date("F j, Y");
echo date("F j, Y");
?>
1 Answer
Algirdas Lalys
9,389 PointsHi Davor Rapic,
You are almost there, you just need to use d instead of j. The difference is that j will output 1, 2, 3, 4... and d will output 01, 02, 03, 04... and the tasks asks for specific format Today is July 04, 2016. I hope it helps:)
davorrapic
990 Pointstnx, i didn't see the difference becouse it was greater then 09.
davorrapic
990 Pointsdavorrapic
990 Pointsfound it, it was d insted of j