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

PHP PHP Basics PHP on the Web Date Function

I am getting the correct output for Today's day still this test is not passing.

<?php echo 'Today is '; //Place your code below this comment

echo date("M d, Y");

?>

I am using the above code for Today's date and its showing the correct output.Please tell me where I am doing wrong.Thanks.

index.php
<?php
echo 'Today is ';
//Place your code below this comment

echo date("M d, Y");


?>

1 Answer

Algirdas Lalys
Algirdas Lalys
9,389 Points

Hi vardan gupta,

It should be full textual representation of a month, not a short representation. so instead of using M it expects F.

<?php echo date("F d, Y"); ?>