To display the date in the PHP page you do not hard. You can use the function date () from PHP. The following simple script will display the "March 10, 2007":
$ This_Day = date ("F j, Y");
echo ($ This_Day);
?>
Easy right? Well if you want to change the date you just change the order of parameters in the date, for example you want to display the date is Creation "2007 March 10" so you live to change the first line to be like this:
$ This_Day = date ("F j Y");
Experiment yourself to better understand.
$ This_Day = date ("F j, Y");
echo ($ This_Day);
?>
Easy right? Well if you want to change the date you just change the order of parameters in the date, for example you want to display the date is Creation "2007 March 10" so you live to change the first line to be like this:
$ This_Day = date ("F j Y");
Experiment yourself to better understand.
0 comments on Learn How to Display Date in PHP :
Post a Comment and Don't Spam!
Dont Spam please