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

Fotis Pastrakis
Fotis Pastrakis
1,124 Points

Problem on platform when giving right answer.

My answer on Date Function has to be July 04, 2016. I use the code below but I still get an error for not using a built in function. What's my mistake here? echo Date('F d, Y'); It's exactly as the exercise asks for.

index.php
<?php
echo 'Today is ';
echo Date('F d, Y');

?>

2 Answers

Ryan S
Ryan S
27,276 Points

Hi Fotis,

The date function must start with a lowercase "d".

echo date("F d, Y");
Fotis Pastrakis
Fotis Pastrakis
1,124 Points

oh I thought that PHP was not case sensitive. Thanks a lot!