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

As a developer, you'll spend a lot of time in the documentation. For this code challenge, you'll need to check out the d

I can not find an error. They said "Bummer: You have not passed the correct string for formatting."

rydavim
rydavim
18,813 Points

You’ll need to post your code so we can take a look at what might be going wrong. You can get some fancy formatting by using some special markdown.

```language

YOUR CODE HERE

```

I'm sorry about that. This is my code.

<?php

echo 'Today is ';

//Place your code below this comment

echo date('F d, Y');

?>

Thank you.

1 Answer

rydavim
rydavim
18,813 Points

Huh, that's odd. Your code works as expected for me. Are you getting a particular error message?

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

Just copy-pasting your code into the challenge immediately passed it for me, and I don't see anything wrong with it. I would try it again just to see if something was just a bit glitchy. If you're still having trouble though, let me know and we can try to troubleshoot or escalate the issue.

Nice work, though - and happy coding!

Thank you for your help.

I tired it but still there is " Bummer: You have not passed the correct string for formatting. "

Thank you anyway.