Share on Google+Share on Google+

PHP Date Function with Example

PHP Date Example: In this tutorial you will get to know about how to write a program in PHP, in addition this page has given important links, which will help you to learn PHP

 Write simple program to display the current date

To develop the first program of PHP, you need to have a web server like: Apache Tomcat , IIS etc. Another way to develop PHP program. WAMP is a kind of stack of software collection, WAMP is the acronym for Windows, Apache, MySQL, and PHP. WAMP server is one of the popular server use for PHP. It is free and you can download it from (you can copy and paste this link in the browsers address bar). After downloading the .exe file, install this file (normal installation as we do for other software package),

For downloading and installing please visit our web site:

For starting the WAMP server:

Now to develop the first program do as follows:

Exmaple 1:


    echo date("l");




In PHP date() is a predefined function which returns a string value, depends on the parameter passed. To know more about date() function please visit our web page:



Posted on: November 3, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.