Welcome to the Treehouse Community
Looking to learn something new?
György Varga19,198 Points
Code challange doesn't accept the right code!
So here is my code and it displays the exact same format as in the example, but the Code Challange doesn't mark it correct.
Please Help! Thank you!
<?php echo 'Today is '; //Place your code below this comment echo date("F j, Y"); ?>
The result might be correct for this specific date, but the date format is not quite right.
The instructions specify that the day of the month should be displayed with a leading 0, with is accomplished with the
d format option. You are using the
j format option which displays the day of the month without a leading zero.
Those result in the same thing on days with two digits in them like today, but would look different on certain other days.
If you replace
d like this:
<?php echo 'Today is '; //Place your code below this comment echo date("F d, Y"); ?>
Then your code will be accepted.