Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,765 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,765 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.