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 trialPerry Eising
12,663 Pointsdate() is deprecated - we shouldn't be using it!
Date has been deprecated in PHP for a while now. If you follow the code in this video on a newer PHP builds (after 5.1.0, and 5.6.8 is now current) you will get an error message.
1 Answer
Frank D
14,042 PointsHi Perry, as far as I am aware date() function has note been deprecated. You can check this information on the PHP manual website @ http://php.net/manual/en/function.date.php
To double check, I have also tested it on my server and it does its function properly.
Hope that helps, Frank