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

PHP Basic Date Function Objective

I'm getting a bummer saying "Look like you forgot the echo command"

index.php
<?php
//Place your code below this comment
$today = date('F d\, Y');
echo 'Today is ' . $today;

?>

2 Answers

rtprjct
rtprjct
30,548 Points

seems like a bit of a semantics issue:

You need to remove the slash from the argument passed within the date() function

<?php
echo 'Today is ';
//Place your code below this comment
echo date('F d, Y');
?>

Thanks Artie91!

Arvelle Whitaker
Arvelle Whitaker
7,452 Points

So what is the difference between echo date ('F d, Y') vs echo date ("F d, Y") ?? i used the double quotes and it did not work. everything else i did was ok. single and double quotes keep getting me. im going back to review again.